Skip to content
OpenAdvisories
Unscored GO-2026-6225

Credential leakage to untrusted hosts in github.com/chrismellard/docker-credential-acr-env

Published Aug 18, 2026 · Updated Aug 26, 2026 · Assigned by GO

Description

In github.com/chrismellard/docker-credential-acr-env/pkg/credhelper, the regular expression used by isACRRegistry to validate Azure Container Registry hostnames is unanchored. As a result, arbitrary hostnames containing the substring ".azurecr.io" (such as evil.azurecr.io.attacker.com) are treated as valid ACR registries, causing ACRCredHelper.Get to send the Azure Active Directory (AAD) access token to attacker-controlled hosts.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/chrismellard/docker-credential-acr-env all versions — GO-2026-6225

References