CVE-2026-40945: Github.com/oxia db/oxia Oxia Exposes Bearer Token Vulnerability
HIGHCVE-2026-40945 is a HIGH oxia exposes bearer token vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/oxia db/oxia libraries in the Go ecosystem. The issue involves oxia exposes bearer token in debug log messages on authentication failure. Remediation is available by upgrading affected packages to version 0.16.2.
CVE-2026-40945 at a Glance
How to Fix CVE-2026-40945
To remediate this vulnerability, upgrade all affected Github.com/oxia db/oxia dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/oxia-db/oxia to 0.16.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/oxia-db/oxia
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-40945, inspect your project dependencies for Github.com/oxia db/oxia:
inspect dependencies for github.com/oxia-db/oxia
Analyze the terminal output to locate any version of Github.com/oxia db/oxia in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.16.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Github.com/oxia db/oxia, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-40945 Affected Github.com/oxia db/oxia Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/oxia-db/oxia
|
Go |
< 0.16.2
|
0.16.2
|
References
Frequently Asked Questions
What is CVE-2026-40945?
Which Github.com/oxia db/oxia versions are affected?
What version fixes CVE-2026-40945?
Is github.com/oxia-db/oxia affected?
What CWE is associated with CVE-2026-40945?
How can I check Go dependencies for CVE-2026-40945?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pm7q-rjjx-979p",
"modified" : "2026-04-24T20:39:49Z",
"published" : "2026-04-14T23:14:38Z",
"aliases" : [ "CVE-2026-40945" ],
"summary" : "Oxia exposes bearer token 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/oxia-db/oxia"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.16.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.16.1"
}
} ],
"references" : [ {
"type" : "WEB",
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-14T23:14:38Z",
"nvd_published_at" : "2026-04-21T22:16:20Z"
}
}