CVE-2023-23934: Wrkzeug's incorrect parsing of nameless cookies leads to __Host- cookies bypass
Vulnerability summary
CVE-2023-23934 is a low (CVSS 3.5) Improper Input Validation vulnerability in pallets werkzeug. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 43.3% of scored vulnerabilities.
Not severe (CVSS 2.6, adjacent network); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 3Timeline
- 14-02-2023PublishedVulnerability first disclosed.
- 10-03-2025Last modifiedVulnerability information updated.
Description
Werkzeug is a comprehensive WSGI web application library. 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 prior to 2.2.3 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. The issue is fixed in Werkzeug 2.2.3.
CVSS metrics
7 scores · 7 sources · 1 version- CVE.orgCNA2.6LowCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · PypiEcosystem advisory · calculated2.6LowCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated2.6LowCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · DebianEcosystem advisory · calculated3.5LowCVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated2.6LowCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated2.6LowCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
0.51%
Chance of exploitation in the next 30 days
Percentile
43%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.51% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: adjacent network, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard1 product
- kubeflow-pipelines-visualization-server< 2.4.0-r0
Debian1 product
- python-werkzeug< 2.2.2-3
Pallets1 product
- werkzeug< 2.2.3
Palletsprojects1 product
- werkzeug< 2.2.3
PyPI1 product
- werkzeug< cf275f42acad1b5950c50ffe8ef58fe62cdce028 | < 2.2.3
Ubuntu1 product
- python-werkzeug< 0.10.4+dfsg1-1ubuntu1.2+esm1 | < 0.14.1+dfsg1-1ubuntu0.2 | < 0.16.1+dfsg1-2ubuntu0.1 | < 2.0.2+dfsg1-1ubuntu0.22.04.1
Wolfi1 product
- kubeflow-pipelines-visualization-server< 2.4.0-r0
7 vendors · 7 products
References
15 links- github.com/pallets/werkzeug/security/advisories/GHSA-px8h-6qxv-m22qX Refsource CONFIRMWEBAdvisoryREPORTVendor Advisory
- github.com/pallets/werkzeug/commit/cf275f42acad1b5950c50ffe8ef58fe62cdce028X Refsource MISCWEBFIXREPORTPatch
- github.com/pallets/werkzeugPACKAGE