Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute
Affected releases · @opentelemetry/instrumentation-cassandra-driver
- 0.65.x0.65.0No fix on this line yet
- 0.64.x0.64.0No fix on this line yet
- 0.63.x0.63.0No fix on this line yet
- 0.62.x0.62.0No fix on this line yet
- 0.61.x0.61.0No fix on this line yet
- 0.60.x0.60.0No fix on this line yet
- 0.59.x0.59.0No fix on this line yet
- 0.58.x0.58.0No fix on this line yet
- 0.57.x0.57.0No fix on this line yet
- 0.56.x0.56.0No fix on this line yet
- 0.55.x0.55.0No fix on this line yet
- 0.54.x0.54.0 – 0.54.1No fix on this line yet
- 0.53.x and older0.23.0 – 0.53.0No fix, no longer updated
0.65.x has no fix yet; the newest fixed line:
npm install @opentelemetry/instrumentation-cassandra-driver@0.66.0Every release on a timeline
Affected
0.23.0 – 0.65.0
57 releases
Fixed
0.66.0 – 0.70.0
5 releases, latest
Affected releases · @opentelemetry/instrumentation-knex
- 0.64.x0.64.0No fix on this line yet
- 0.63.x0.63.0No fix on this line yet
- 0.62.x0.62.0No fix on this line yet
- 0.61.x0.61.0No fix on this line yet
- 0.60.x0.60.0No fix on this line yet
- 0.59.x0.59.0No fix on this line yet
- 0.58.x0.58.0No fix on this line yet
- 0.57.x0.57.0No fix on this line yet
- 0.56.x0.56.0No fix on this line yet
- 0.55.x0.55.0No fix on this line yet
- 0.54.x0.54.0No fix on this line yet
- 0.53.x and older0.21.0 – 0.53.1No fix, no longer updated
0.64.x has no fix yet; the newest fixed line:
npm install @opentelemetry/instrumentation-knex@0.65.0Every release on a timeline
Affected
0.21.0 – 0.64.0
60 releases
Fixed
0.65.0 – 0.69.0
5 releases, latest
Affected releases · @opentelemetry/instrumentation-mongoose
- 0.66.x0.66.0No fix on this line yet
- 0.65.x0.65.0No fix on this line yet
- 0.64.x0.64.0No fix on this line yet
- 0.63.x0.63.0No fix on this line yet
- 0.62.x0.62.0No fix on this line yet
- 0.61.x0.61.0No fix on this line yet
- 0.60.x0.60.0No fix on this line yet
- 0.59.x0.59.0No fix on this line yet
- 0.58.x0.58.0No fix on this line yet
- 0.57.x0.57.0No fix on this line yet
- 0.56.x0.56.0No fix on this line yet
- 0.55.x0.55.0 – 0.55.1No fix on this line yet
- 0.54.x and older0.31.0 – 0.54.0No fix, no longer updated
0.66.x has no fix yet; the newest fixed line:
npm install @opentelemetry/instrumentation-mongoose@0.67.0Every release on a timeline
Affected
0.31.0 – 0.66.0
51 releases
Fixed
0.67.0 – 0.71.0
5 releases, latest
Affected releases · @opentelemetry/instrumentation-mysql
- 0.66.x0.66.0No fix on this line yet
- 0.65.x0.65.0No fix on this line yet
- 0.64.x0.64.0No fix on this line yet
- 0.63.x0.63.0No fix on this line yet
- 0.62.x0.62.0No fix on this line yet
- 0.61.x0.61.0No fix on this line yet
- 0.60.x0.60.0No fix on this line yet
- 0.59.x0.59.0No fix on this line yet
- 0.58.x0.58.0No fix on this line yet
- 0.57.x0.57.0No fix on this line yet
- 0.56.x0.56.0No fix on this line yet
- 0.55.x0.55.0No fix on this line yet
- 0.54.x and older0.15.0 – 0.54.0No fix, no longer updated
0.66.x has no fix yet; the newest fixed line:
npm install @opentelemetry/instrumentation-mysql@0.67.0Every release on a timeline
Affected
0.15.0 – 0.66.0
65 releases
Fixed
0.67.0 – 0.71.0
6 releases, latest
Affected releases · @opentelemetry/instrumentation-mysql2
- 0.66.x0.66.0No fix on this line yet
- 0.65.x0.65.0No fix on this line yet
- 0.64.x0.64.0No fix on this line yet
- 0.63.x0.63.0No fix on this line yet
- 0.62.x0.62.0No fix on this line yet
- 0.61.x0.61.0No fix on this line yet
- 0.60.x0.60.0No fix on this line yet
- 0.59.x0.59.0No fix on this line yet
- 0.58.x0.58.0No fix on this line yet
- 0.57.x0.57.0No fix on this line yet
- 0.56.x0.56.0No fix on this line yet
- 0.55.x0.55.0 – 0.55.1No fix on this line yet
- 0.54.x and older0.21.0 – 0.54.0No fix, no longer updated
0.66.x has no fix yet; the newest fixed line:
npm install @opentelemetry/instrumentation-mysql2@0.67.0Every release on a timeline
Affected
0.21.0 – 0.66.0
65 releases
Fixed
0.67.0 – 0.71.0
5 releases, latest
Affected releases · @opentelemetry/instrumentation-oracledb
- 0.45.x0.45.0No fix on this line yet
- 0.44.x0.44.0No fix on this line yet
- 0.43.x0.43.0No fix on this line yet
- 0.42.x0.42.0No fix on this line yet
- 0.41.x0.41.0No fix on this line yet
- 0.40.x0.40.0No fix on this line yet
- 0.39.x0.39.0No fix on this line yet
- 0.38.x0.38.0No fix on this line yet
- 0.37.x0.37.0No fix on this line yet
- 0.36.x0.36.0No fix on this line yet
- 0.35.x0.35.0No fix on this line yet
- 0.34.x0.34.0 – 0.34.1No fix on this line yet
- 0.33.x and older0.26.0 – 0.33.0No fix, no longer updated
0.45.x has no fix yet; the newest fixed line:
npm install @opentelemetry/instrumentation-oracledb@0.46.0Every release on a timeline
Affected
0.26.0 – 0.45.0
23 releases
Fixed
0.46.0 – 0.50.0
5 releases, latest
Affected releases · @opentelemetry/instrumentation-pg
- 0.72.x0.72.0No fix on this line yet
- 0.71.x0.71.0No fix on this line yet
- 0.70.x0.70.0No fix on this line yet
- 0.69.x0.69.0No fix on this line yet
- 0.68.x0.68.0No fix on this line yet
- 0.67.x0.67.0No fix on this line yet
- 0.66.x0.66.0No fix on this line yet
- 0.65.x0.65.0No fix on this line yet
- 0.64.x0.64.0No fix on this line yet
- 0.63.x0.63.0No fix on this line yet
- 0.62.x0.62.0No fix on this line yet
- 0.61.x0.61.0 – 0.61.2No fix on this line yet
- 0.60.x and older0.14.0 – 0.60.0No fix, no longer updated
0.72.x has no fix yet; the newest fixed line:
npm install @opentelemetry/instrumentation-pg@0.73.0Every release on a timeline
Affected
0.14.0 – 0.72.0
75 releases
Fixed
0.73.0 – 0.78.0
6 releases, latest
Affected releases · @opentelemetry/instrumentation-tedious
- 0.39.x0.39.0No fix on this line yet
- 0.38.x0.38.0No fix on this line yet
- 0.37.x0.37.0No fix on this line yet
- 0.36.x0.36.0No fix on this line yet
- 0.35.x0.35.0No fix on this line yet
- 0.34.x0.34.0No fix on this line yet
- 0.33.x0.33.0No fix on this line yet
- 0.32.x0.32.0No fix on this line yet
- 0.31.x0.31.0No fix on this line yet
- 0.30.x0.30.0No fix on this line yet
- 0.29.x0.29.0No fix on this line yet
- 0.28.x0.28.0No fix on this line yet
- 0.27.x and older0.1.0 – 0.27.0No fix, no longer updated
0.39.x has no fix yet; the newest fixed line:
npm install @opentelemetry/instrumentation-tedious@0.40.0Every release on a timeline
Affected
0.1.0 – 0.39.0
54 releases
Fixed
0.40.0 – 0.44.0
5 releases, latest
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 | < 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 |
@opentelemetry/instrumentation-pg | < 0.73.0 | 0.73.0 |
@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).
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.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.