CVE-2026-142238
OpenCost through 1.121.5 contains a missing authentication …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/apiutil.go#L11-L17
- github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/loglevel.go#L37-L51
- github.com/opencost/opencost/blob/v1.121.5/pkg/cmd/costmodel/costmodel.go#L114-L120
- www.vulncheck.com/advisories/opencost-through-1.121.5-missing-authentication-via-logs-leve
- nvd.nist.gov/vuln/detail/CVE-2026-142238
- cve.org/CVERecord?id=CVE-2026-142238
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.