CVE-2026-104872
CVE-2026-104872 · Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 5.8 · Medium · EPSS 0.2% · Fix available
- Published
- Updated
Stack: node
Affected products and versions
opentelemetry-js-contrib
- Versions
- < 27e172a9e0d549559056ccd58f27d13467454156: Affected
No fix published
instrumentation-cassandra-driver
- Versions
- < 0.66.0: Affected
No fix published
instrumentation-knex
- Versions
- < 0.65.0: Affected
No fix published
instrumentation-mongoose
- Versions
- < 0.67.0: Affected
No fix published
instrumentation-mysql
- Versions
- < 0.67.0: Affected
No fix published
instrumentation-mysql2
- Versions
- < 0.67.0: Affected
No fix published
instrumentation-oracledb
- Versions
- < 0.46.0: Affected
No fix published
instrumentation-pg
- Versions
- < 0.73.0: Affected
No fix published
instrumentation-tedious
- Versions
- < 0.40.0: Affected
No fix published
@opentelemetry/instrumentation-cassandra-driver npm
- Affected ranges
- SEMVER: < 0.66.0
Update to 0.66.0
@opentelemetry/instrumentation-tedious npm
- Affected ranges
- SEMVER: < 0.40.0
Update to 0.40.0
@opentelemetry/instrumentation-oracledb npm
- Affected ranges
- SEMVER: < 0.46.0
Update to 0.46.0
@opentelemetry/instrumentation-mongoose npm
- Affected ranges
- SEMVER: < 0.67.0
Update to 0.67.0
@opentelemetry/instrumentation-mysql npm
- Affected ranges
- SEMVER: < 0.67.0
Update to 0.67.0
@opentelemetry/instrumentation-knex npm
- Affected ranges
- SEMVER: < 0.65.0
Update to 0.65.0
@opentelemetry/instrumentation-mysql2 npm
- Affected ranges
- SEMVER: < 0.67.0
Update to 0.67.0
@opentelemetry/instrumentation-pg npm
- Affected ranges
- SEMVER: < 0.73.0
Update to 0.73.0
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-104872