CVE-2026-40945: Github.com/oxia db/oxia Oxia Exposes Bearer Token Vulnerability

HIGH
Advisory Identifier: GHSA-pm7q-rjjx-979p
CWE-532
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-40945
GHSA Identifier GHSA-pm7q-rjjx-979p
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/oxia db/oxia
Package Ecosystem Go
Published Date
Last Updated

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.

github.com/oxia-db/oxia fixed: 0.16.2
Upgrade github.com/oxia-db/oxia to 0.16.2
Verify Direct and Transitive Dependencies

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

### Summary When 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. ### Impact An 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. All versions using OIDC authentication are affected. ### Details In `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. ### Patches Fixed by redacting the token in log output — only the last 8 characters are preserved for correlation purposes. ### Workarounds Ensure DEBUG-level logging is never enabled in production environments.

CVE-2026-40945 Affected Github.com/oxia db/oxia Versions

1 component(s)
Fixed Versions:
0.16.2
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?
CVE-2026-40945 is a security vulnerability in Github.com/oxia db/oxia involving Oxia exposes bearer token in debug log messages on authentication failure under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/oxia db/oxia versions are affected?
Affected versions include releases prior to 0.16.2 across affected packages: github.com/oxia-db/oxia.
What version fixes CVE-2026-40945?
Upgrading to 0.16.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/oxia-db/oxia affected?
Yes, github.com/oxia-db/oxia is affected in releases prior to 0.16.2. Upgrade your dependency to 0.16.2 or later.
What CWE is associated with CVE-2026-40945?
CVE-2026-40945 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for CVE-2026-40945?
Run the dependency tree command: 'inspect dependencies for github.com/oxia-db/oxia'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}