# GO-2026-6225: Credential leakage to untrusted hosts in github.com/chrismellard/docker-credential-acr-env

- Database: Go
- Published: 2026-08-18
- Modified: 2026-08-26

## Affected versions

- github.com/chrismellard/docker-credential-acr-env (Go): all versions

## 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.

## References

- https://github.com/chrismellard/docker-credential-acr-env/issues/21
- https://github.com/osscontainertools/docker-credential-acr

Page: https://cve.now/GO-2026-6225

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
