Multiple @opentelemetry/instrumentation- packages expose signed URL query values and URL credentials via url.full
Description
Several instrumentations in opentelemetry-js-contrib record URLs verbatim in the url.full attribute (and, in some cases, url.query or the span name) of the telemetry they produce. None of these packages redacted credentials embedded in the URL (https://user:pass@host/) or known sensitive query parameters, so signed URLs (AWS presigned-URL signatures, Azure SAS tokens (sig), GCS signed-URL signatures) are exported in plaintext to the configured telemetry backend.
This is the opentelemetry-js-contrib counterpart of GHSA-3v2p-hm54-8qcq (@opentelemetry/instrumentation-http) and GHSA-qmwq-c476-x7q2 (@opentelemetry/instrumentation-fetch, @opentelemetry/instrumentation-xml-http-request).
Affected packages and the telemetry they leak into:
| Package | Telemetry affected |
|---|---|
@opentelemetry/instrumentation-undici | url.full and url.query on outgoing (client) spans for fetch() / undici requests in Node.js |
@opentelemetry/instrumentation-aws-lambda | url.full on server spans for API Gateway / ALB invocations (URL built from the incoming event) |
@opentelemetry/instrumentation-nestjs-core | url.full on request handler spans (from req.originalUrl / req.url) |
@opentelemetry/instrumentation-document-load | url.full on documentLoad and documentFetch spans (location.href) and on resourceFetch spans (URL of every resource loaded by the page) |
@opentelemetry/instrumentation-user-interaction | url.full on interaction spans (window.location.href), and the span name of interaction spans that trigger a route change (which included the raw query string) |
@opentelemetry/instrumentation-browser-navigation | url.full on navigation log records, unless a custom sanitizeUrl callback was configured |
Impact
Information disclosure / credential leakage (CWE-200; CWE-532, insertion of sensitive information into telemetry data).
Who is impacted: any application instrumented with one of the packages above (directly, or transitively via @opentelemetry/auto-instrumentations-node, @opentelemetry/auto-instrumentations-web or third-party distributions built on these packages) that sends, receives or navigates to URLs carrying credentials. Common cases include:
- Node.js services using
fetch()/undicito upload to or download from object storage via presigned S3/GCS URLs or Azure SAS URLs (instrumentation-undici). - Lambda functions or NestJS applications that receive requests whose URLs carry signatures or tokens (
instrumentation-aws-lambda,instrumentation-nestjs-core). - Web applications whose page URL, or whose loaded resources (images, scripts, media, ...), carry signed query parameters, for example pages served from or embedding presigned object-storage URLs (
instrumentation-document-load,instrumentation-user-interaction,instrumentation-browser-navigation).
Consequence: still-valid credentials are written into spans and log records and stored by the telemetry backend, readable by anyone with read access to it: observability vendor infrastructure, dashboard users, and internal audiences far broader than the credential's intended scope. Presigned URLs typically remain valid for minutes to days after capture; a leaked presigned PUT URL also allows writing to the target object.
Severity: Moderate. Exploitation requires read access to the telemetry backend, and the URLs involved must actually carry credentials. The behavior contradicts the semantic conventions, which state that url.full MUST NOT contain credentials passed in the URL and that values of known sensitive query parameters SHOULD be redacted by default.
Patches
This vulnerability has been patched in the following versions:
| Package | Vulnerable | Patched |
|---|---|---|
@opentelemetry/instrumentation-undici | <= 0.35.0 | 0.35.1 |
@opentelemetry/instrumentation-aws-lambda | <= 0.77.0 | 0.77.1 |
@opentelemetry/instrumentation-nestjs-core | <= 0.72.0 | 0.72.1 |
@opentelemetry/instrumentation-document-load | <= 0.70.0 | 0.70.1 |
@opentelemetry/instrumentation-user-interaction | <= 0.69.0 | 0.69.1 |
@opentelemetry/instrumentation-browser-navigation | <= 0.18.0 | 0.19.0 |
Credentials in the URL and known sensitive query string values (as defined by Semantic Conventions: sig, Signature, AWSAccessKeyId, X-Goog-Signature, X-Amz-Signature, X-Amz-Credential, X-Amz-Security-Token) are now replaced with REDACTED in url.full. instrumentation-undici applies the same redaction to url.query, and instrumentation-user-interaction applies it to the query string in route-change span names.
@opentelemetry/auto-instrumentations-node@0.83.1 and @opentelemetry/auto-instrumentations-web@0.70.1 depend on the patched versions. 0.83.0 and 0.70.0 already accept the patched versions through their ^ ranges, so refreshing your lockfile is enough there. Older bundle versions pin older minor versions of the instrumentations and need to be upgraded.
Note for @opentelemetry/instrumentation-browser-navigation: a custom sanitizeUrl callback fully replaces the default redaction and is called with the raw, unredacted URL. If you configure one, make sure it redacts credentials and the parameters listed above, or call the exported defaultSanitizeUrl from it.
References
Affected versions
- @opentelemetry/instrumentation-undicithrough 0.35.0
- @opentelemetry/instrumentation-aws-lambdathrough 0.77.0
- @opentelemetry/instrumentation-nestjs-corethrough 0.72.0
- @opentelemetry/instrumentation-document-loadthrough 0.70.0
- @opentelemetry/instrumentation-user-interactionthrough 0.69.0
- @opentelemetry/instrumentation-browser-navigationthrough 0.18.0