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 package | Versions | Reported by |
|---|---|---|
| aio-libs aiohttp | < 3.14.1 | CVE List |
| aiohttp (PyPI) | before 3.14.1 | GitHub Advisory Database, PyPA Advisory Database |
| aiohttp aiohttp | from 3.12.0 before 3.14.1 | NVD |
All scores
| GitHub_M | 6.3medium CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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 |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| PyPA Advisory Database | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
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
| https://github.com/aio-libs/aiohttp/security/advisories/GHSA-hpj7-wq8m-9hgp | advisory, vendor-advisory, web | |
| https://github.com/aio-libs/aiohttp/commit/38d16060037e1bfcd6d677abababa3c2a4bb58fa | fix, patch, web | |
| https://github.com/aio-libs/aiohttp | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54276 changed 2026-06-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hpj7-wq8m-9hgp changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-54276 changed 2026-10-25 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2109 changed 2026-07-13 | CC-BY-4.0 |