GitHub Advisoryadvisory · PyPI

GHSA-hpj7-wq8m-9hgp aiohttp: DigestAuthMiddleware Applies Credentials to Cross-Origin Redirect Challenges

MEDIUM Published 2026-06-15 Modified 2026-06-15 Official page ↗
Aliases
CVE-2026-54276
Ecosystem
PyPI
Packages
aiohttp
Severity
Moderate
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weaknesses
CWE-200, CWE-522
Reviewed
2026-06-15

Affected packages

• PyPI aiohttp: < 3.14.1 → fixed in 3.14.1

Description

Summary ``DigestAuthMiddleware`` can send an authentication response after following a cross-origin redirect. Impact If the client follows a redirect (the default option) to an attacker controlled domain, the attacker may be able to extract the auth digest. This likely requires an open redirect vulnerability or similar on the target domain for an attacker to be able to execute. Further, the attacker is only receiving the digest, so should only be able to extract the user's credentials if the cryptography is weak or there is some kind of password reuse. Workaround Disable ``follow_redirects`` if this is a concern. ----- Patch: https://github.com/aio-libs/aiohttp/commit/38d16060037e1bfcd6d677abababa3c2a4bb58fa

Related

Alias · CVE (1)

  • CVE-2026-54276 AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. vulnerability

Weakness · CWE (2)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
  • CWE-522 Insufficiently Protected Credentials weakness

References