Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute
Summary
| CVE | CVE-2026-104872 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-02 20:17:01 UTC |
| Updated | 2026-10-02 20:17:01 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.8 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Problem Types: CWE-532 | CWE-532 CWE-532: Insertion of Sensitive Information into Log File
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.8 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
| 3.1 | CNA | DECLARED | 5.8 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
ChangedConfidentiality
LowIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Open-telemetry | Opentelemetry-js-contrib | affected < 27e172a9e0d549559056ccd58f27d13467454156 | Not specified |
| CNA | @opentelemetry | Instrumentation-cassandra-driver | affected < 0.66.0 | Not specified |
| CNA | @opentelemetry | Instrumentation-knex | affected < 0.65.0 | Not specified |
| CNA | @opentelemetry | Instrumentation-mongoose | affected < 0.67.0 | Not specified |
| CNA | @opentelemetry | Instrumentation-mysql | affected < 0.67.0 | Not specified |
| CNA | @opentelemetry | Instrumentation-mysql2 | affected < 0.67.0 | Not specified |
| CNA | @opentelemetry | Instrumentation-oracledb | affected < 0.46.0 | Not specified |
| CNA | @opentelemetry | Instrumentation-pg | affected < 0.73.0 | Not specified |
| CNA | @opentelemetry | Instrumentation-tedious | affected < 0.40.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/open-telemetry/opentelemetry-js-contrib/security/advisories/G... | [email protected] | github.com | |
| github.com/open-telemetry/opentelemetry-js-contrib/commit/5b7dd0e102e940... | [email protected] | github.com | |
| github.com/open-telemetry/opentelemetry-js-contrib/commit/27e172a9e0d549... | [email protected] | github.com | |
| github.com/open-telemetry/opentelemetry-js-contrib/pull/3585 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.