Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-532.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| open-telemetry | opentelemetry-js-contrib | before 27e172a9e0d549559056ccd58f27d13467454156 | 27e172a9e0d549559056ccd58f27d13467454156 | Patch available | CNA |
| open-telemetry | instrumentation-cassandra-driver | before 0.66.0 | 0.66.0 | Patch available | CNA |
| open-telemetry | instrumentation-knex | before 0.65.0 | 0.65.0 | Patch available | CNA |
| open-telemetry | instrumentation-mongoose | before 0.67.0 | 0.67.0 | Patch available | CNA |
| open-telemetry | instrumentation-mysql | before 0.67.0 | 0.67.0 | Patch available | CNA |
| open-telemetry | instrumentation-mysql2 | before 0.67.0 | 0.67.0 | Patch available | CNA |
| open-telemetry | instrumentation-oracledb | before 0.46.0 | 0.46.0 | Patch available | CNA |
| open-telemetry | instrumentation-pg | before 0.73.0 | 0.73.0 | Patch available | CNA |
| open-telemetry | instrumentation-tedious | before 0.40.0 | 0.40.0 | Patch available | CNA |
| — | @opentelemetry/instrumentation-cassandra-driver (npm) | before 0.66.0 | 0.66.0 | Patch available | GHSA-qqmp-wf37-98f9 |
| — | @opentelemetry/instrumentation-tedious (npm) | before 0.40.0 | 0.40.0 | Patch available | GHSA-qqmp-wf37-98f9 |
| — | @opentelemetry/instrumentation-oracledb (npm) | before 0.46.0 | 0.46.0 | Patch available | GHSA-qqmp-wf37-98f9 |
| — | @opentelemetry/instrumentation-mongoose (npm) | before 0.67.0 | 0.67.0 | Patch available | GHSA-qqmp-wf37-98f9 |
| — | @opentelemetry/instrumentation-mysql (npm) | before 0.67.0 | 0.67.0 | Patch available | GHSA-qqmp-wf37-98f9 |
| — | @opentelemetry/instrumentation-knex (npm) | before 0.65.0 | 0.65.0 | Patch available | GHSA-qqmp-wf37-98f9 |
| — | @opentelemetry/instrumentation-mysql2 (npm) | before 0.67.0 | 0.67.0 | Patch available | GHSA-qqmp-wf37-98f9 |
| — | @opentelemetry/instrumentation-pg (npm) | before 0.73.0 | 0.73.0 | Patch available | GHSA-qqmp-wf37-98f9 |
- opentelemetry-js-contrib Vendoropen-telemetry Affected before 27e172a9e0d549559056ccd58f27d13467454156 Fixed in 27e172a9e0d549559056ccd58f27d13467454156 Patch available CNA
- instrumentation-cassandra-driver Vendoropen-telemetry Affected before 0.66.0 Fixed in 0.66.0 Patch available CNA
- instrumentation-knex Vendoropen-telemetry Affected before 0.65.0 Fixed in 0.65.0 Patch available CNA
- instrumentation-mongoose Vendoropen-telemetry Affected before 0.67.0 Fixed in 0.67.0 Patch available CNA
- instrumentation-mysql Vendoropen-telemetry Affected before 0.67.0 Fixed in 0.67.0 Patch available CNA
- instrumentation-mysql2 Vendoropen-telemetry Affected before 0.67.0 Fixed in 0.67.0 Patch available CNA
- instrumentation-oracledb Vendoropen-telemetry Affected before 0.46.0 Fixed in 0.46.0 Patch available CNA
- instrumentation-pg Vendoropen-telemetry Affected before 0.73.0 Fixed in 0.73.0 Patch available CNA
- instrumentation-tedious Vendoropen-telemetry Affected before 0.40.0 Fixed in 0.40.0 Patch available CNA
- @opentelemetry/instrumentation-cassandra-driver (npm) Vendor— Affected before 0.66.0 Fixed in 0.66.0 Patch available GHSA-qqmp-wf37-98f9
- @opentelemetry/instrumentation-tedious (npm) Vendor— Affected before 0.40.0 Fixed in 0.40.0 Patch available GHSA-qqmp-wf37-98f9
- @opentelemetry/instrumentation-oracledb (npm) Vendor— Affected before 0.46.0 Fixed in 0.46.0 Patch available GHSA-qqmp-wf37-98f9
- @opentelemetry/instrumentation-mongoose (npm) Vendor— Affected before 0.67.0 Fixed in 0.67.0 Patch available GHSA-qqmp-wf37-98f9
- @opentelemetry/instrumentation-mysql (npm) Vendor— Affected before 0.67.0 Fixed in 0.67.0 Patch available GHSA-qqmp-wf37-98f9
- @opentelemetry/instrumentation-knex (npm) Vendor— Affected before 0.65.0 Fixed in 0.65.0 Patch available GHSA-qqmp-wf37-98f9
- @opentelemetry/instrumentation-mysql2 (npm) Vendor— Affected before 0.67.0 Fixed in 0.67.0 Patch available GHSA-qqmp-wf37-98f9
- @opentelemetry/instrumentation-pg (npm) Vendor— Affected before 0.73.0 Fixed in 0.73.0 Patch available GHSA-qqmp-wf37-98f9
Remediation
- Fix · CNA opentelemetry-js-contrib (open-telemetry) Fixed in 27e172a9e0d549559056ccd58f27d13467454156
- Fix · CNA instrumentation-cassandra-driver (@opentelemetry) Fixed in 0.66.0
- Fix · CNA instrumentation-knex (@opentelemetry) Fixed in 0.65.0
- Fix · CNA instrumentation-mongoose (@opentelemetry) Fixed in 0.67.0
- Fix · CNA instrumentation-mysql (@opentelemetry) Fixed in 0.67.0
- Fix · CNA instrumentation-mysql2 (@opentelemetry) Fixed in 0.67.0
- Fix · CNA instrumentation-oracledb (@opentelemetry) Fixed in 0.46.0
- Fix · CNA instrumentation-pg (@opentelemetry) Fixed in 0.73.0
- Fix · CNA instrumentation-tedious (@opentelemetry) Fixed in 0.40.0
- Fix · GHSA-qqmp-wf37-98f9 @opentelemetry/instrumentation-cassandra-driver (npm) Fixed in 0.66.0 Advisory →
- Fix · GHSA-qqmp-wf37-98f9 @opentelemetry/instrumentation-tedious (npm) Fixed in 0.40.0 Advisory →
- Fix · GHSA-qqmp-wf37-98f9 @opentelemetry/instrumentation-oracledb (npm) Fixed in 0.46.0 Advisory →
- Fix · GHSA-qqmp-wf37-98f9 @opentelemetry/instrumentation-mongoose (npm) Fixed in 0.67.0 Advisory →
- Fix · GHSA-qqmp-wf37-98f9 @opentelemetry/instrumentation-mysql (npm) Fixed in 0.67.0 Advisory →
- Fix · GHSA-qqmp-wf37-98f9 @opentelemetry/instrumentation-knex (npm) Fixed in 0.65.0 Advisory →
- Fix · GHSA-qqmp-wf37-98f9 @opentelemetry/instrumentation-mysql2 (npm) Fixed in 0.67.0 Advisory →
- Fix · GHSA-qqmp-wf37-98f9 @opentelemetry/instrumentation-pg (npm) Fixed in 0.73.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Developer Hub 1 | Affected | No fix yet: Fix deferred |
| Self-service automation portal 2 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-104872
- 2026-10-04 Priority changed: MEDIUM → LOW
- 2026-10-05 Affected versions changed · Red Hat
- 2026-10-05 CVSS score added · Red Hat
- 2026-10-06 Alias added: GHSA-qqmp-wf37-98f9
- 2026-10-06 Fix available: npm/@opentelemetry/[email protected], npm/@opentelemetry/[email protected], npm/@opentelemetry/[email protected] +5 · GHSA-qqmp-wf37-98f9
- 2026-10-06 CVSS score added · GHSA-qqmp-wf37-98f9
- 2026-10-06 Weakness changed · GHSA-qqmp-wf37-98f9
- 2026-10-06 6 new references · GHSA-qqmp-wf37-98f9
- 2026-10-06 CISA SSVC decision points changed
- 2026-10-27 Affected versions changed · Red Hat
References
Other 5
- 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://github.com/open-telemetry/opentelemetry-js-contrib
More open-telemetry vulnerabilities
- TI-2024-23957 OpenTelemetry Collector has a Denial of Service via Zip/Decompression Bomb sent over HTTP or gRPC CVSS 3.1HIGH 8.2
- TI-2026-42706 OpenTelemetry JavaScript: Denial of service in `JaegerPropagator` via unhandled exception on a malformed header CVSS 3.1HIGH 7.5
- TI-2026-33428 OpenTelemetry eBPF Instrumentation: Memcached payload length overflow can crash OBI CVSS 3.1HIGH 7.5
- TI-2026-33427 OpenTelemetry eBPF Instrumentation: MongoDB parser panics on malformed wire messages CVSS 3.1HIGH 7.5
- TI-2026-33420 OpenTelemetry eBPF Instrumentation: Postgres BIND parsing can panic on malformed payloads CVSS 3.1HIGH 7.5
- TI-2026-32777 opentelemetry-js: Prometheus exporter process crash via malformed HTTP request CVSS 3.1HIGH 7.5
Sources
- CVE-2026-104872 · CVE Program
- CVE-2026-104872 · NVD
- FIRST EPSS
- GHSA-qqmp-wf37-98f9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-104872 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences