CVE-2026-42602: opentelemetry-collector-contrib's azureauthextension Authenticate method does not validate bearer tokens, allowing auth bypass via replay
A server-side authentication bypass in azureauthextension allows any party who holds a single valid Azure access token for any scope the collector’s configured identity can mint for to authenticate to any OpenTelemetry receiver that uses auth: azure_auth. The extension’s Authenticate method does not validate incoming bearer tokens as JWTs. Instead, it calls its own configured credential to obtain an access token and compares the client’s token to the result with string equality — and the scope for that server-side token request is taken from the client-supplied Host header. As a result, a token minted for any Azure resource the service principal has ever been issued a token for (ARM, Graph, Key Vault, Storage, etc.) will authenticate to the collector if the attacker picks a matching Host. Tokens are replayable for the full issued lifetime (commonly several hours for managed identity tokens).
Severity: High (CVSS 8.1). See “Threat model” below for the preconditions that inform that score.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-42602 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →