{"id":"CVE-2023-23934","published":"2023-02-14T19:56:22Z","modified":"2025-03-10T21:11:36Z","title":"Wrkzeug's incorrect parsing of nameless cookies leads to __Host- cookies bypass","vendor":"pallets","product":"werkzeug","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00507,"percentile":0.44172,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-px8h-6qxv-m22q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pallets/werkzeug/commit/cf275f42acad1b5950c50ffe8ef58fe62cdce028","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/werkzeug/releases/tag/2.2.3","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2023/dsa-5470","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230818-0003/","tags":[]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":8.83},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"pallets","affectedVersions":[{"vendor":"pallets","product":"werkzeug","versions":["< 2.2.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-10T20:57:36.294064Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Werkzeug","vulnerableRanges":["<2.2.3"],"patched":["2.2.3"],"from":["GHSA-px8h-6qxv-m22q","PYSEC-2023-57"],"provenance":"source"}],"summary":{"text":"The Werkzeug WSGI web application library (pallets/werkzeug) mis-parses \"nameless\" cookies sent as =value rather than key=value, so a cookie such as =__Host-test=bad is read as __Host-test=bad. An attacker who controls a subdomain adjacent to a Werkzeug application can exploit this from a vulnerable browser, with user interaction required and no prior authentication, to plant a __Host- cookie value the application will accept as valid.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:37Z"},"euvd":{"id":"EUVD-2023-0281","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2016-10516","published":"2017-10-23","fixed":"0.11.11","kev":false},{"cve":"CVE-2023-23934","published":"2023-02-14","fixed":"2.2.3","kev":false},{"cve":"CVE-2023-25577","published":"2023-02-14","fixed":"2.2.3","kev":false},{"cve":"CVE-2023-46136","published":"2023-10-24","fixed":"3.0.1","kev":false,"link":{"from":"CVE-2023-23934","to":"CVE-2023-46136","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Werkzeug","fromFixed":"2.2.3","toFixed":"2.3.8","daysApart":252}]}},{"cve":"CVE-2024-34069","published":"2024-05-06","fixed":"3.0.3","kev":false}],"package":"PyPI:Werkzeug"}}