CVE-2026-104872

Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute

State
Published
Severity
5.8 Medium
Published
Oct 2, 2026
Updated
Oct 6, 2026
Reserved
Oct 2, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.8 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:NGitHub_M

Weaknesses

  • CWE-532 Insertion of Sensitive Information into Log File

Affected Products

ProductVersions
opentelemetry-js-contribopen-telemetry
  • < 27e172a9e0d549559056ccd58f27d13467454156Affected
instrumentation-cassandra-driver@opentelemetry
  • < 0.66.0Affected
instrumentation-knex@opentelemetry
  • < 0.65.0Affected
instrumentation-mongoose@opentelemetry
  • < 0.67.0Affected
instrumentation-mysql@opentelemetry
  • < 0.67.0Affected
instrumentation-mysql2@opentelemetry
  • < 0.67.0Affected
instrumentation-oracledb@opentelemetry
  • < 0.46.0Affected
instrumentation-pg@opentelemetry
  • < 0.73.0Affected
instrumentation-tedious@opentelemetry
  • < 0.40.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.