CVE-2026-142238
Description
OpenCost through 1.121.5 contains a missing authentication vulnerability that allows unauthenticated attackers to change logging configuration through the POST /logs/level and /logs/exclude diagnostic endpoints. Attackers reaching the API port can disable logging, set verbose levels, or install exclusion patterns to suppress the audit trail or flood service logs.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/apiutil.go#L11-L17
- https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/loglevel.go#L37-L51
- https://github.com/opencost/opencost/blob/v1.121.5/pkg/cmd/costmodel/costmodel.go#L114-L120
- https://www.vulncheck.com/advisories/opencost-through-1.121.5-missing-authentication-via-logs-level-and-logs-exclude
CWEs
CWE-306
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.