---
title: "GHSA-qqmp-wf37-98f9: Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute"
description: "Moderate severity. Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute."
url: https://inlinr.com/advisories/GHSA-qqmp-wf37-98f9
lang: en
---

[Packages](https://inlinr.com/packages)

Moderate Vulnerability GHSA-qqmp-wf37-98f9 CVE-2026-104872 Published 5 Oct 2026

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

Your version of @opentelemetry/instrumentation-cassandra-driver 

Affected releases · [@opentelemetry/instrumentation-cassandra-driver](https://inlinr.com/packages/@opentelemetry/instrumentation-cassandra-driver)

- 0.65.x 0.65.0 No fix on this line yet
- 0.64.x 0.64.0 No fix on this line yet
- 0.63.x 0.63.0 No fix on this line yet
- 0.62.x 0.62.0 No fix on this line yet
- 0.61.x 0.61.0 No fix on this line yet
- 0.60.x 0.60.0 No fix on this line yet
- 0.59.x 0.59.0 No fix on this line yet
- 0.58.x 0.58.0 No fix on this line yet
- 0.57.x 0.57.0 No fix on this line yet
- 0.56.x 0.56.0 No fix on this line yet
- 0.55.x 0.55.0 No fix on this line yet
- 0.54.x 0.54.0 – 0.54.1 No fix on this line yet
- 0.53.x and older 0.23.0 – 0.53.0 No fix, no longer updated

0.65.x has no fix yet; the newest fixed line:

```
npm install @opentelemetry/instrumentation-cassandra-driver@0.66.0
```

Every release on a timeline

1. Affected

0.23.0 – 0.65.0  
57 releases
2. Fixed

0.66.0 – 0.70.0  
5 releases, latest

62 stable releases of @opentelemetry/instrumentation-cassandra-driver, oldest to newest.

Your version of @opentelemetry/instrumentation-knex 

Affected releases · [@opentelemetry/instrumentation-knex](https://inlinr.com/packages/@opentelemetry/instrumentation-knex)

- 0.64.x 0.64.0 No fix on this line yet
- 0.63.x 0.63.0 No fix on this line yet
- 0.62.x 0.62.0 No fix on this line yet
- 0.61.x 0.61.0 No fix on this line yet
- 0.60.x 0.60.0 No fix on this line yet
- 0.59.x 0.59.0 No fix on this line yet
- 0.58.x 0.58.0 No fix on this line yet
- 0.57.x 0.57.0 No fix on this line yet
- 0.56.x 0.56.0 No fix on this line yet
- 0.55.x 0.55.0 No fix on this line yet
- 0.54.x 0.54.0 No fix on this line yet
- 0.53.x and older 0.21.0 – 0.53.1 No fix, no longer updated

0.64.x has no fix yet; the newest fixed line:

```
npm install @opentelemetry/instrumentation-knex@0.65.0
```

Every release on a timeline

1. Affected

0.21.0 – 0.64.0  
60 releases
2. Fixed

0.65.0 – 0.69.0  
5 releases, latest

65 stable releases of @opentelemetry/instrumentation-knex, oldest to newest.

Your version of @opentelemetry/instrumentation-mongoose 

Affected releases · [@opentelemetry/instrumentation-mongoose](https://inlinr.com/packages/@opentelemetry/instrumentation-mongoose)

- 0.66.x 0.66.0 No fix on this line yet
- 0.65.x 0.65.0 No fix on this line yet
- 0.64.x 0.64.0 No fix on this line yet
- 0.63.x 0.63.0 No fix on this line yet
- 0.62.x 0.62.0 No fix on this line yet
- 0.61.x 0.61.0 No fix on this line yet
- 0.60.x 0.60.0 No fix on this line yet
- 0.59.x 0.59.0 No fix on this line yet
- 0.58.x 0.58.0 No fix on this line yet
- 0.57.x 0.57.0 No fix on this line yet
- 0.56.x 0.56.0 No fix on this line yet
- 0.55.x 0.55.0 – 0.55.1 No fix on this line yet
- 0.54.x and older 0.31.0 – 0.54.0 No fix, no longer updated

0.66.x has no fix yet; the newest fixed line:

```
npm install @opentelemetry/instrumentation-mongoose@0.67.0
```

Every release on a timeline

1. Affected

0.31.0 – 0.66.0  
51 releases
2. Fixed

0.67.0 – 0.71.0  
5 releases, latest

56 stable releases of @opentelemetry/instrumentation-mongoose, oldest to newest.

Your version of @opentelemetry/instrumentation-mysql 

Affected releases · [@opentelemetry/instrumentation-mysql](https://inlinr.com/packages/@opentelemetry/instrumentation-mysql)

- 0.66.x 0.66.0 No fix on this line yet
- 0.65.x 0.65.0 No fix on this line yet
- 0.64.x 0.64.0 No fix on this line yet
- 0.63.x 0.63.0 No fix on this line yet
- 0.62.x 0.62.0 No fix on this line yet
- 0.61.x 0.61.0 No fix on this line yet
- 0.60.x 0.60.0 No fix on this line yet
- 0.59.x 0.59.0 No fix on this line yet
- 0.58.x 0.58.0 No fix on this line yet
- 0.57.x 0.57.0 No fix on this line yet
- 0.56.x 0.56.0 No fix on this line yet
- 0.55.x 0.55.0 No fix on this line yet
- 0.54.x and older 0.15.0 – 0.54.0 No fix, no longer updated

0.66.x has no fix yet; the newest fixed line:

```
npm install @opentelemetry/instrumentation-mysql@0.67.0
```

Every release on a timeline

1. Affected

0.15.0 – 0.66.0  
65 releases
2. Fixed

0.67.0 – 0.71.0  
6 releases, latest

71 stable releases of @opentelemetry/instrumentation-mysql, oldest to newest.

Your version of @opentelemetry/instrumentation-mysql2 

Affected releases · [@opentelemetry/instrumentation-mysql2](https://inlinr.com/packages/@opentelemetry/instrumentation-mysql2)

- 0.66.x 0.66.0 No fix on this line yet
- 0.65.x 0.65.0 No fix on this line yet
- 0.64.x 0.64.0 No fix on this line yet
- 0.63.x 0.63.0 No fix on this line yet
- 0.62.x 0.62.0 No fix on this line yet
- 0.61.x 0.61.0 No fix on this line yet
- 0.60.x 0.60.0 No fix on this line yet
- 0.59.x 0.59.0 No fix on this line yet
- 0.58.x 0.58.0 No fix on this line yet
- 0.57.x 0.57.0 No fix on this line yet
- 0.56.x 0.56.0 No fix on this line yet
- 0.55.x 0.55.0 – 0.55.1 No fix on this line yet
- 0.54.x and older 0.21.0 – 0.54.0 No fix, no longer updated

0.66.x has no fix yet; the newest fixed line:

```
npm install @opentelemetry/instrumentation-mysql2@0.67.0
```

Every release on a timeline

1. Affected

0.21.0 – 0.66.0  
65 releases
2. Fixed

0.67.0 – 0.71.0  
5 releases, latest

70 stable releases of @opentelemetry/instrumentation-mysql2, oldest to newest.

Your version of @opentelemetry/instrumentation-oracledb 

Affected releases · [@opentelemetry/instrumentation-oracledb](https://inlinr.com/packages/@opentelemetry/instrumentation-oracledb)

- 0.45.x 0.45.0 No fix on this line yet
- 0.44.x 0.44.0 No fix on this line yet
- 0.43.x 0.43.0 No fix on this line yet
- 0.42.x 0.42.0 No fix on this line yet
- 0.41.x 0.41.0 No fix on this line yet
- 0.40.x 0.40.0 No fix on this line yet
- 0.39.x 0.39.0 No fix on this line yet
- 0.38.x 0.38.0 No fix on this line yet
- 0.37.x 0.37.0 No fix on this line yet
- 0.36.x 0.36.0 No fix on this line yet
- 0.35.x 0.35.0 No fix on this line yet
- 0.34.x 0.34.0 – 0.34.1 No fix on this line yet
- 0.33.x and older 0.26.0 – 0.33.0 No fix, no longer updated

0.45.x has no fix yet; the newest fixed line:

```
npm install @opentelemetry/instrumentation-oracledb@0.46.0
```

Every release on a timeline

1. Affected

0.26.0 – 0.45.0  
23 releases
2. Fixed

0.46.0 – 0.50.0  
5 releases, latest

28 stable releases of @opentelemetry/instrumentation-oracledb, oldest to newest.

Your version of @opentelemetry/instrumentation-pg 

Affected releases · [@opentelemetry/instrumentation-pg](https://inlinr.com/packages/@opentelemetry/instrumentation-pg)

- 0.72.x 0.72.0 No fix on this line yet
- 0.71.x 0.71.0 No fix on this line yet
- 0.70.x 0.70.0 No fix on this line yet
- 0.69.x 0.69.0 No fix on this line yet
- 0.68.x 0.68.0 No fix on this line yet
- 0.67.x 0.67.0 No fix on this line yet
- 0.66.x 0.66.0 No fix on this line yet
- 0.65.x 0.65.0 No fix on this line yet
- 0.64.x 0.64.0 No fix on this line yet
- 0.63.x 0.63.0 No fix on this line yet
- 0.62.x 0.62.0 No fix on this line yet
- 0.61.x 0.61.0 – 0.61.2 No fix on this line yet
- 0.60.x and older 0.14.0 – 0.60.0 No fix, no longer updated

0.72.x has no fix yet; the newest fixed line:

```
npm install @opentelemetry/instrumentation-pg@0.73.0
```

Every release on a timeline

1. Affected

0.14.0 – 0.72.0  
75 releases
2. Fixed

0.73.0 – 0.78.0  
6 releases, latest

81 stable releases of @opentelemetry/instrumentation-pg, oldest to newest.

Your version of @opentelemetry/instrumentation-tedious 

Affected releases · [@opentelemetry/instrumentation-tedious](https://inlinr.com/packages/@opentelemetry/instrumentation-tedious)

- 0.39.x 0.39.0 No fix on this line yet
- 0.38.x 0.38.0 No fix on this line yet
- 0.37.x 0.37.0 No fix on this line yet
- 0.36.x 0.36.0 No fix on this line yet
- 0.35.x 0.35.0 No fix on this line yet
- 0.34.x 0.34.0 No fix on this line yet
- 0.33.x 0.33.0 No fix on this line yet
- 0.32.x 0.32.0 No fix on this line yet
- 0.31.x 0.31.0 No fix on this line yet
- 0.30.x 0.30.0 No fix on this line yet
- 0.29.x 0.29.0 No fix on this line yet
- 0.28.x 0.28.0 No fix on this line yet
- 0.27.x and older 0.1.0 – 0.27.0 No fix, no longer updated

0.39.x has no fix yet; the newest fixed line:

```
npm install @opentelemetry/instrumentation-tedious@0.40.0
```

Every release on a timeline

1. Affected

0.1.0 – 0.39.0  
54 releases
2. Fixed

0.40.0 – 0.44.0  
5 releases, latest

59 stable releases of @opentelemetry/instrumentation-tedious, oldest to newest.

## What happens

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](https://inlinr.com/packages/@opentelemetry/instrumentation-cassandra-driver) | < 0.66.0         | 0.66.0          |
| [@opentelemetry/instrumentation-knex](https://inlinr.com/packages/@opentelemetry/instrumentation-knex)                         | < 0.65.0         | 0.65.0          |
| [@opentelemetry/instrumentation-mongoose](https://inlinr.com/packages/@opentelemetry/instrumentation-mongoose)                 | < 0.67.0         | 0.67.0          |
| [@opentelemetry/instrumentation-mysql](https://inlinr.com/packages/@opentelemetry/instrumentation-mysql)                       | < 0.67.0         | 0.67.0          |
| [@opentelemetry/instrumentation-mysql2](https://inlinr.com/packages/@opentelemetry/instrumentation-mysql2)                     | < 0.67.0         | 0.67.0          |
| [@opentelemetry/instrumentation-oracledb](https://inlinr.com/packages/@opentelemetry/instrumentation-oracledb)                 | < 0.46.0         | 0.46.0          |
| [@opentelemetry/instrumentation-pg](https://inlinr.com/packages/@opentelemetry/instrumentation-pg)                             | < 0.73.0         | 0.73.0          |
| [@opentelemetry/instrumentation-tedious](https://inlinr.com/packages/@opentelemetry/instrumentation-tedious)                   | < 0.40.0         | 0.40.0          |

Patches

Fixed in the coordinated release on 2026-07-23 via [feat!: only emit stable http, network and database attributes (#3585)](https://github.com/open-telemetry/opentelemetry-js-contrib/pull/3585 "https://github.com/open-telemetry/opentelemetry-js-contrib/pull/3585").

Upgrade to the patched version listed in the table above for each instrumentation package in use.

Workarounds

No configuration-level workaround exists in the affected versions: the `db.user` attribute cannot be suppressed without patching. As a partial mitigation, a custom `SpanProcessor` can be used to strip `db.user` from spans before they leave the process:

```
// Example: drop db.user in a custom SpanProcessor
class StripDbUserProcessor implements SpanProcessor {
  onStart(span: Span) {
    span.setAttribute('db.user', null);
  }
  onEnd() {}
  shutdown() { return Promise.resolve(); }
  forceFlush() { return Promise.resolve(); }
}
```

Users who control the downstream collector can also filter the attribute at the collector pipeline level.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: low
- **Integrity**: none
- **Availability**: none

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:C/​C:L/​I:N/​A:N

## References

- [Reference](https://github.com/open-telemetry/opentelemetry-js-contrib/security/advisories/GHSA-qqmp-wf37-98f9 "https://github.com/open-telemetry/opentelemetry-js-contrib/security/advisories/GHSA-qqmp-wf37-98f9")  
github.com/open-telemetry/opentelemetry-js-cont…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-104872 "https://nvd.nist.gov/vuln/detail/CVE-2026-104872")  
nvd.nist.gov/vuln/detail/CVE-2026-104872
- [Pull request](https://github.com/open-telemetry/opentelemetry-js-contrib/pull/3585 "https://github.com/open-telemetry/opentelemetry-js-contrib/pull/3585")  
#3585
- [Fix commit](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/27e172a9e0d549559056ccd58f27d13467454156 "https://github.com/open-telemetry/opentelemetry-js-contrib/commit/27e172a9e0d549559056ccd58f27d13467454156")  
27e172a
- [Fix commit](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/5b7dd0e102e940d653e04b08b5a1b721a8271037 "https://github.com/open-telemetry/opentelemetry-js-contrib/commit/5b7dd0e102e940d653e04b08b5a1b721a8271037")  
5b7dd0e
- [Package](https://github.com/open-telemetry/opentelemetry-js-contrib "https://github.com/open-telemetry/opentelemetry-js-contrib")  
github.com/open-telemetry/opentelemetry-js-cont…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
