Skip to main content
Menu
Advisories

Summary @opentelemetry/instrumentation-fetch and @opentelemetry/instrumentation-xml-http-request record the request URL verbatim in the url.full attribute of outgoing (client) spans

GHSA-QMWQ-C476-X7Q2Published Updated GitHub

Description

@opentelemetry/instrumentation-fetch and @opentelemetry/instrumentation-xml-http-request record the request URL verbatim in the url.full attribute of outgoing (client) spans. Neither package redacts credentials embedded in the URL (https://user:pass@host/) or known sensitive query parameters, so signed URLs requested from the browser — AWS presigned-URL signatures, Azure SAS tokens (sig), GCS signed-URL signatures — are exported in plaintext to the configured tracing backend.

This is the browser counterpart of GHSA-3v2p-hm54-8qcq. Unlike @opentelemetry/instrumentation-http, these packages offered no option to enable redaction.

Impact

Information disclosure / credential leakage (CWE-200; CWE-532, insertion of sensitive information into telemetry data).

Who is impacted: any web application instrumented with @opentelemetry/instrumentation-fetch or @opentelemetry/instrumentation-xml-http-request — directly or transitively via @opentelemetry/auto-instrumentations-web or third-party browser distributions built on these packages — that issues fetch() or XMLHttpRequest calls to URLs carrying credentials. The common case is direct-to-object-storage uploads and downloads using presigned S3/GCS URLs or Azure SAS URLs.

Consequence: still-valid credentials are written into client spans and stored by the tracing backend, readable by anyone with span-read access — 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 requested URLs 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 @opentelemetry/instrumentation-fetch and @opentelemetry/instrumentation-xml-http-request versions 0.301.2 and 0.223.2. 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 redacted from url.full.

References

Affected versions

References

GitHub · open-telemetry/opentelemetry-js