CVE-2026-104872

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

  • Medium 5.8

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.

Key facts

Published
2 Oct 2026
Last changed
6 Oct 2026
Assigned by
GitHub_M
EPSS
0.244% likely to be exploited in the next 30 days, higher than 15.796% of CVEs (scores for 17 Nov 2026)
SSVC (CISA)
Exploitation: none; Automatable: yes; Technical impact: partial

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 5.8CVSS 3.1, Mediumfrom the CNA (GitHub_M)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
open-telemetryopentelemetry-js-contrib
  • < 27e172a9e0d549559056ccd58f27d13467454156 (affected)
@opentelemetryinstrumentation-cassandra-driver
  • < 0.66.0 (affected)
@opentelemetryinstrumentation-knex
  • < 0.65.0 (affected)
@opentelemetryinstrumentation-mongoose
  • < 0.67.0 (affected)
@opentelemetryinstrumentation-mysql
  • < 0.67.0 (affected)
@opentelemetryinstrumentation-mysql2
  • < 0.67.0 (affected)
@opentelemetryinstrumentation-oracledb
  • < 0.46.0 (affected)
@opentelemetryinstrumentation-pg
  • < 0.73.0 (affected)
@opentelemetryinstrumentation-tedious
  • < 0.40.0 (affected)

Timeline

  1. 2 Oct 2026 Published

Weakness

References