{"id":"CVE-2026-104872","published":"2026-10-02T19:50:24Z","modified":"2026-10-06T16:40:55Z","title":"Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute","vendor":"open-telemetry","product":"opentelemetry-js-contrib","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00419,"percentile":0.27937,"provenance":"source"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/security/advisories/GHSA-qqmp-wf37-98f9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/pull/3585","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/commit/27e172a9e0d549559056ccd58f27d13467454156","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/commit/5b7dd0e102e940d653e04b08b5a1b721a8271037","tags":["x_refsource_MISC"]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":5.59},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"open-telemetry","affectedVersions":[{"vendor":"open-telemetry","product":"opentelemetry-js-contrib","versions":["< 27e172a9e0d549559056ccd58f27d13467454156"]},{"vendor":"@opentelemetry","product":"instrumentation-cassandra-driver","versions":["< 0.66.0"]},{"vendor":"@opentelemetry","product":"instrumentation-knex","versions":["< 0.65.0"]},{"vendor":"@opentelemetry","product":"instrumentation-mongoose","versions":["< 0.67.0"]},{"vendor":"@opentelemetry","product":"instrumentation-mysql","versions":["< 0.67.0"]},{"vendor":"@opentelemetry","product":"instrumentation-mysql2","versions":["< 0.67.0"]},{"vendor":"@opentelemetry","product":"instrumentation-oracledb","versions":["< 0.46.0"]},{"vendor":"@opentelemetry","product":"instrumentation-pg","versions":["< 0.73.0"]},{"vendor":"@opentelemetry","product":"instrumentation-tedious","versions":["< 0.40.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-06T16:40:46.354222Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@opentelemetry/instrumentation-cassandra-driver","vulnerableRanges":["<0.66.0"],"patched":["0.66.0"],"from":["GHSA-qqmp-wf37-98f9"],"provenance":"source"},{"ecosystem":"npm","package":"@opentelemetry/instrumentation-tedious","vulnerableRanges":["<0.40.0"],"patched":["0.40.0"],"from":["GHSA-qqmp-wf37-98f9"],"provenance":"source"},{"ecosystem":"npm","package":"@opentelemetry/instrumentation-oracledb","vulnerableRanges":["<0.46.0"],"patched":["0.46.0"],"from":["GHSA-qqmp-wf37-98f9"],"provenance":"source"},{"ecosystem":"npm","package":"@opentelemetry/instrumentation-mongoose","vulnerableRanges":["<0.67.0"],"patched":["0.67.0"],"from":["GHSA-qqmp-wf37-98f9"],"provenance":"source"},{"ecosystem":"npm","package":"@opentelemetry/instrumentation-mysql","vulnerableRanges":["<0.67.0"],"patched":["0.67.0"],"from":["GHSA-qqmp-wf37-98f9"],"provenance":"source"},{"ecosystem":"npm","package":"@opentelemetry/instrumentation-knex","vulnerableRanges":["<0.65.0"],"patched":["0.65.0"],"from":["GHSA-qqmp-wf37-98f9"],"provenance":"source"},{"ecosystem":"npm","package":"@opentelemetry/instrumentation-mysql2","vulnerableRanges":["<0.67.0"],"patched":["0.67.0"],"from":["GHSA-qqmp-wf37-98f9"],"provenance":"source"},{"ecosystem":"npm","package":"@opentelemetry/instrumentation-pg","vulnerableRanges":["<0.73.0"],"patched":["0.73.0"],"from":["GHSA-qqmp-wf37-98f9"],"provenance":"source"}],"summary":{"text":"Several OpenTelemetry JavaScript instrumentation packages for database drivers (Cassandra, Knex, Mongoose, MySQL, MySQL2, Oracle DB, PostgreSQL and Tedious) unconditionally attach the database connection username to every instrumented operation as the db.user span attribute, with no opt-in setting to disable it. An attacker with access to the telemetry data sent to a configured observability backend, requiring no authentication or user interaction, could learn database account names, which may reveal service topology, roles, environments, and account naming patterns.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:54Z"},"euvd":{"id":"EUVD-2026-91788","exploited":false,"provenance":"source"}}