Advisory

GHSA-hpj7-wq8m-9hgp

Also known as: CVE-2026-54276, PYSEC-2026-2109

Summary

aiohttp: DigestAuthMiddleware Applies Credentials to Cross-Origin Redirect Challenges

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-06-15 20:09 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

aiohttp

PyPI · All systems

Affected

  • introduced 0, fixed 3.14.1 (ecosystem)

Fixed versions

3.14.1

Fix

  • Fixed version 3.14.1
    pip install --upgrade aiohttp==3.14.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences