CVE-2026-104872Multiple @opentelemetry/instrumentation-* packages expose database username via…
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
Fixed builds are available from npm: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| npm library | @opentelemetry/instrumentation-cassandra-driver | Fixed | 0.66.0 | GHSA-qqmp-wf37-98f9 |
| npm library | @opentelemetry/instrumentation-knex | Fixed | 0.65.0 | GHSA-qqmp-wf37-98f9 |
| npm library | @opentelemetry/instrumentation-mongoose | Fixed | 0.67.0 | GHSA-qqmp-wf37-98f9 |
| npm library | @opentelemetry/instrumentation-mysql | Fixed | 0.67.0 | GHSA-qqmp-wf37-98f9 |
| npm library | @opentelemetry/instrumentation-mysql2 | Fixed | 0.67.0 | GHSA-qqmp-wf37-98f9 |
| npm library | @opentelemetry/instrumentation-oracledb | Fixed | 0.46.0 | GHSA-qqmp-wf37-98f9 |
| npm library | @opentelemetry/instrumentation-pg | Fixed | 0.73.0 | GHSA-qqmp-wf37-98f9 |
| npm library | @opentelemetry/instrumentation-tedious | Fixed | 0.40.0 | GHSA-qqmp-wf37-98f9 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- open-telemetry opentelemetry-js-contrib: affected: < 27e172a9e0d549559056ccd58f27d13467454156
- @opentelemetry instrumentation-cassandra-driver: affected: < 0.66.0
- @opentelemetry instrumentation-knex: affected: < 0.65.0
- @opentelemetry instrumentation-mongoose: affected: < 0.67.0
- @opentelemetry instrumentation-mysql: affected: < 0.67.0
- @opentelemetry instrumentation-mysql2: affected: < 0.67.0
- @opentelemetry instrumentation-oracledb: affected: < 0.46.0
- @opentelemetry instrumentation-pg: affected: < 0.73.0
- @opentelemetry instrumentation-tedious: affected: < 0.40.0
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.