LowGHSA-px8h-6qxv-m22qCVE-2023-23934PYSEC-2023-57

Incorrect parsing of nameless cookies leads to __Host- cookies bypass

Published 15 Feb 2023 · Updated 10 Sept 2026

Is your project on an affected werkzeug?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.2.3
Fixed in
2.2.3
Update to the fixed version for your release line, for example:pip install 'werkzeug>=2.2.3'

Details

Browsers may allow "nameless" cookies that look like =value instead of key=value. A vulnerable browser may allow a compromised application on an adjacent subdomain to exploit this to set a cookie like =__Host-test=bad for another subdomain.

Werkzeug <= 2.2.2 will parse the cookie =__Host-test=bad as __Host-test=bad. If a Werkzeug application is running next to a vulnerable or malicious subdomain which sets such a cookie using a vulnerable browser, the Werkzeug application will see the bad cookie value but the valid cookie key.

Is GHSA-px8h-6qxv-m22q in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected werkzeug, and gives you the command that fixes it.

More advisories for werkzeug

  • MediumCVE-2026-102598Werkzeug safe_join() allows Windows special device names · 5 Oct 2026
  • MediumCVE-2026-27199 Werkzeug safe_join() allows Windows special device names · 19 Feb 2026
  • MediumCVE-2026-21860 Werkzeug safe_join() allows Windows special device names with compound extensions · 8 Jan 2026
  • MediumCVE-2025-66221Werkzeug safe_join() allows Windows special device names · 2 Dec 2025
  • MediumCVE-2024-49767Werkzeug possible resource exhaustion when parsing file data in forms · 25 Oct 2024
  • MediumCVE-2024-49766Werkzeug safe_join not safe on Windows · 25 Oct 2024
All 15 advisories for werkzeug

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.