CVE-2026-142238: OpenCost through 1.121.5 Missing Authentication via /logs/level and /logs/exclude
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
OpenCost deployments through version 1.121.5 are exposed if an attacker can reach the API port. The affected endpoints are POST /logs/level and POST /logs/exclude.
Does an attacker need credentials or user interaction?
No. The vulnerability is reachable over the network with low attack complexity, requires no privileges or user interaction, and affects logging configuration rather than confidentiality or availability directly.
What could indicate that the issue has already been exploited?
Look for unexpected logging-level changes, newly configured log exclusion patterns, missing audit records, or unusually verbose logs. These outcomes can result from unauthorized requests to the affected diagnostic endpoints.