CVE-2026-54276
JSON

6.3medium

AIOHTTP: DigestAuthMiddleware Applies Credentials to Cross-Origin Redirect Challenges

Severity
6.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-hpj7-wq8m-9hgpPYSEC-2026-2109

Description

AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.1, DigestAuthMiddleware can send an authentication response after following a cross-origin redirect. 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. This vulnerability is fixed in 3.14.1.

Affected

Product or packageVersionsReported by
aio-libs aiohttp< 3.14.1CVE List
aiohttp (PyPI)before 3.14.1GitHub Advisory Database, PyPA Advisory Database
aiohttp aiohttpfrom 3.12.0 before 3.14.1NVD

All scores

GitHub_M6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
PyPA Advisory Database6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-200CWE-522CWE-601

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.1, DigestAuthMiddleware can send an authentication response after following a cross-origin redirect. 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. This vulnerability is fixed in 3.14.1.

GitHub Advisory Database
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

NVD (es)

AIOHTTP es un framework HTTP cliente/servidor asíncrono para asyncio y Python. Antes de la versión 3.14.1, DigestAuthMiddleware puede enviar una respuesta de autenticación después de seguir una redirección de origen cruzado. Esto probablemente requiere una vulnerabilidad de redirección abierta o similar en el dominio objetivo para que un atacante pueda ejecutarlo. Además, el atacante solo está recibiendo el digest, por lo que solo debería poder extraer las credenciales del usuario si la criptografía es débil o si hay algún tipo de reutilización de contraseña. Esta vulnerabilidad está corregida en la versión 3.14.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54276 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-hpj7-wq8m-9hgp changed 2026-09-10CC-BY-4.0
NVDCVE-2026-54276 changed 2026-10-25Public domain
PyPA Advisory DatabasePYSEC-2026-2109 changed 2026-07-13CC-BY-4.0