Skip to content
Heist/ feed
MediumFix available

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

Type: advisorySource: OSV1 source record

### Impact Multiple `@opentelemetry/instrumentation-*` packages recorded the database connection username as the `db.user` span attribute on every instrumented database operation. This attribute was emitted unconditionally — it was not gated by `enhancedDatabaseReporting` or any other opt-in flag, and it was the **default** behaviour for all users of the affected packages until the patched releases shipped on 2026-07-23. The attribute is forwarded to every configured observability backend (Jaeger, Zipkin, Datadog, OTLP collectors, etc.). Depending on the database account naming convention in use, the exported value may reveal: - Internal service account names that disclose architecture topology. - Role-encoded usernames (e.g. `admin_readwrite`, `app_readonly_prod`) useful for privilege inference. - Database account naming patterns useful for credential enumeration. Affected packages (all are vulnerable from the first published version through the version listed below): | Package | Vulnerable range | Patched version | |---------|-----------------|-----------------| | `@opentelemetry/instrumentation-cassandra-driver` | `< 0.66.0` | `0.66.0` | | `@opentelemetry/instrumentation-knex` | `< 0.65.0` | `0.65.0` | | `@opentelemetry/instrumentation-mongoose` | `< 0.67.0` | `0.67.0` | | `@opentelemetry/instrumentation-mysql` | `< 0.67.0` | `0.67.0` | | `@opentelemetry/instrumentation-mysql2` | `< 0.67.0` | `0.67.0` | | `@opentelemetry/instrumentation-oracledb` | `< 0.46.0` | `0.46.0` |

Announced Group revision 1
Original source ↗

GHSA-qqmp-wf37-98f9

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-qqmp-wf37-98f9

@opentelemetry/instrumentation-cassandra-driver

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
0.66.0

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

@opentelemetry/instrumentation-tedious

Source reference: /affected/1/package/name

Affected versions
Not stated in this record
Fixed versions
0.40.0

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

@opentelemetry/instrumentation-oracledb

Source reference: /affected/2/package/name

Affected versions
Not stated in this record
Fixed versions
0.46.0

Source reference: /affected/2/ranges

Prerequisites
Not stated in this record

@opentelemetry/instrumentation-mongoose

Source reference: /affected/3/package/name

Affected versions
Not stated in this record
Fixed versions
0.67.0

Source reference: /affected/3/ranges

Prerequisites
Not stated in this record

@opentelemetry/instrumentation-mysql

Source reference: /affected/4/package/name

Affected versions
Not stated in this record
Fixed versions
0.67.0

Source reference: /affected/4/ranges

Prerequisites
Not stated in this record

@opentelemetry/instrumentation-knex

Source reference: /affected/5/package/name

Affected versions
Not stated in this record
Fixed versions
0.65.0

Source reference: /affected/5/ranges

Prerequisites
Not stated in this record

@opentelemetry/instrumentation-mysql2

Source reference: /affected/6/package/name

Affected versions
Not stated in this record
Fixed versions
0.67.0

Source reference: /affected/6/ranges

Prerequisites
Not stated in this record

@opentelemetry/instrumentation-pg

Source reference: /affected/7/package/name

Affected versions
Not stated in this record
Fixed versions
0.73.0

Source reference: /affected/7/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.66.0"
          }
        ]
      }
    ],
    "package": {
      "name": "@opentelemetry/instrumentation-cassandra-driver",
      "purl": "pkg:npm/%40opentelemetry/instrumentation-cassandra-driver",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-qqmp-wf37-98f9/GHSA-qqmp-wf37-98f9.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.40.0"
          }
        ]
      }
    ],
    "package": {
      "name": "@opentelemetry/instrumentation-tedious",
      "purl": "pkg:npm/%40opentelemetry/instrumentation-tedious",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-qqmp-wf37-98f9/GHSA-qqmp-wf37-98f9.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.46.0"
          }
        ]
      }
    ],
    "package": {
      "name": "@opentelemetry/instrumentation-oracledb",
      "purl": "pkg:npm/%40opentelemetry/instrumentation-oracledb",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-qqmp-wf37-98f9/GHSA-qqmp-wf37-98f9.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.67.0"
          }
        ]
      }
    ],
    "package": {
      "name": "@opentelemetry/instrumentation-mongoose",
      "purl": "pkg:npm/%40opentelemetry/instrumentation-mongoose",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-qqmp-wf37-98f9/GHSA-qqmp-wf37-98f9.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.67.0"
          }
        ]
      }
    ],
    "package": {
      "name": "@opentelemetry/instrumentation-mysql",
      "purl": "pkg:npm/%40opentelemetry/instrumentation-mysql",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-qqmp-wf37-98f9/GHSA-qqmp-wf37-98f9.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.65.0"
          }
        ]
      }
    ],
    "package": {
      "name": "@opentelemetry/instrumentation-knex",
      "purl": "pkg:npm/%40opentelemetry/instrumentation-knex",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-qqmp-wf37-98f9/GHSA-qqmp-wf37-98f9.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.67.0"
          }
        ]
      }
    ],
    "package": {
      "name": "@opentelemetry/instrumentation-mysql2",
      "purl": "pkg:npm/%40opentelemetry/instrumentation-mysql2",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-qqmp-wf37-98f9/GHSA-qqmp-wf37-98f9.json"
    }
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.73.0"
          }
        ]
      }
    ],
    "package": {
      "name": "@opentelemetry/instrumentation-pg",
      "purl": "pkg:npm/%40opentelemetry/instrumentation-pg",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-qqmp-wf37-98f9/GHSA-qqmp-wf37-98f9.json"
    }
  }
]
Related CVEs
CVE-2026-104872

Source reference: /aliases

Publisher severity

medium

Source reference: /severity/0/score

Linked CVE context

These ratings describe the referenced vulnerabilities and products. They are not a severity rating for every application using this dependency.

CVE-2026-104872 · Medium

opentelemetry-js-contrib, instrumentation-cassandra-driver, instrumentation-knex, instrumentation-mongoose, instrumentation-mysql, instrumentation-mysql2, instrumentation-oracledb, instrumentation-pg, instrumentation-tedious

Event
#85855 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement