Low

Incorrect parsing of nameless cookies leads to __Host- cookies bypass

  • Disclosed: 14.02.2023
  • Updated: 11.10.2026 15:17

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) werkzeug < 2.2.3 2.2.3

References

CVSS score 2.6/10
CVSS vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
Weakness (CWE)
CWE-20
Platform
Python (PyPI)
Package
werkzeug
Disclosed
14.02.2023
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2023-57 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-px8h-6qxv-m22q - CC BY 4.0

Vulnerability history: werkzeug

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (15) in the archive
Total entries
15
First → latest
10.2017 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 4
  • Medium 9
  • Low 1
  • Unrated 1

Disclosures per year

  1. 2017: 1
  2. 2018: 0
  3. 2019: 1
  4. 2020: 1
  5. 2021: 0
  6. 2022: 2
  7. 2023: 3
  8. 2024: 3
  9. 2025: 1
  10. 2026: 3
Severity:
  1. Incorrect parsing of nameless cookies leads to __Host- cookies bypass this entry
    Low · 2.6 CVE-2023-23934 < 2.2.3 2.2.3
  2. High · 7.5 CVE-2019-14322 < 0.15.5 0.15.5
  3. High · 7.5 CVE-2019-14806 < 0.15.3 0.15.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.