{"affected":[{"defaultStatus":"unaffected","ecosystem":"golang","packageName":"github.com/opencost/opencost","product":"OpenCost","source":"CNA: VulnCheck","vendor":"opencost","versions":[{"lessThanOrEqual":"1.121.5","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-142238","cwes":["CWE-306"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":6.9,"severity":"medium","source":"CNA: VulnCheck","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","version":"4.0"},{"score":5.3,"severity":"medium","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},{"score":6.9,"severity":"medium","source":"NVD: disclosure@vulncheck.com","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"score":5.3,"severity":"medium","source":"NVD: disclosure@vulncheck.com","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}],"modifiedAt":1796253517900,"publishedAt":1796230205078,"references":[{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/apiutil.go#L11-L17"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/loglevel.go#L37-L51"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/opencost/opencost/blob/v1.121.5/pkg/cmd/costmodel/costmodel.go#L114-L120"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/opencost-through-1.121.5-missing-authentication-via-logs-level-and-logs-exclude"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/apiutil.go#L11-L17"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/loglevel.go#L37-L51"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/opencost/opencost/blob/v1.121.5/pkg/cmd/costmodel/costmodel.go#L114-L120"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://www.vulncheck.com/advisories/opencost-through-1.121.5-missing-authentication-via-logs-level-and-logs-exclude"}],"remediation":[],"revision":"54f63d9349d165deb7355dc64547c69c48016fdc88e7949367a880f5d3250ae7","sources":[{"modifiedAt":1796250963485,"name":"CNA: VulnCheck","retrievedAt":1796252960291,"url":"https://www.cve.org/CVERecord?id=CVE-2026-142238"},{"modifiedAt":1796253517900,"name":"NVD","retrievedAt":1796257285135,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142238"}],"ssvc":{"assessedAt":1796250942589,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"OpenCost through 1.121.5 Missing Authentication via /logs/level and /logs/exclude","updatedAt":1796257285135}