{"id":"CVE-2026-40945","aliases":["GHSA-pm7q-rjjx-979p","GO-2026-5546"],"url":"https://o3.security/vulnerability/CVE-2026-40945","summary":"Oxia: Bearer token exposed in debug log messages on authentication failure","details":"### Summary\nWhen OIDC authentication fails, the full bearer token is logged at DEBUG level in plaintext. If debug logging is enabled in production, JWT tokens are exposed in application logs and any connected log aggregation system.\n\n### Impact\nAn attacker with access to application logs (e.g., via a compromised log aggregation pipeline, shared logging infrastructure, or misconfigured log access controls) can extract valid JWT tokens and replay them to authenticate as legitimate users.\n\nAll versions using OIDC authentication are affected.\n\n### Details\nIn `oxiad/common/rpc/auth/interceptor.go`, the `validateTokenWithContext()` function logs the complete token value via `slog.String(\"token\", token)` when authentication fails. This includes the full JWT header, payload, and signature.\n\n### Patches\nFixed by redacting the token in log output — only the last 8 characters are preserved for correlation purposes.\n\n### Workarounds\nEnsure DEBUG-level logging is never enabled in production environments.","published":"2026-04-21T21:16:28.138Z","modified":"2026-08-12T03:51:12.394065457Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/oxia-db/oxia","fixedVersion":"0.16.2"}],"fix":{"url":"https://github.com/oxia-db/oxia/commit/f7259d0ebc739fc95ff19f93c823433850857416","label":"oxia-db/oxia@f7259d0"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40945.json"},{"type":"ADVISORY","url":"https://github.com/oxia-db/oxia/security/advisories/GHSA-pm7q-rjjx-979p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40945"},{"type":"WEB","url":"https://github.com/oxia-db/oxia/commit/f7259d0ebc739fc95ff19f93c823433850857416"},{"type":"PACKAGE","url":"https://github.com/oxia-db/oxia"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:12.394065457Z"}}