All vulnerabilities

Go

CVE-2026-142238

OpenCost through 1.121.5 Missing Authentication via /logs/level and /logs/exclude

Severity
Medium 6.9
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Weakness
Missing authentication (CWE-306)
Attack
Over the network · No login needed · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
github.com/opencost/opencostGo · osv:Go:github.com/opencost/opencost
  • Every version up to 1.121.5

About github.com/opencost/opencost

This is the only vulnerability in github.com/opencost/opencost in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142238