{"id":"CVE-2023-23934","aliases":["CVE-2023-23934","GHSA-px8h-6qxv-m22q","PYSEC-2023-57"],"related":[],"kind":"vulnerability","state":"published","title":"Wrkzeug's incorrect parsing of nameless cookies leads to __Host- cookies bypass","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.\n\nWerkzeug <= 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.","format":"markdown","source":"ghsa"}],"published":"2023-02-14T19:56:22.659Z","modified":"2026-09-10T03:50:07.890Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"< 2.2.3","status":"affected"}],"vendor":"pallets","product":"werkzeug","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.3"}],"ecosystem":"PyPI","package":"werkzeug","purl":"pkg:pypi/werkzeug","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.3"}],"vendor":"palletsprojects","product":"werkzeug","cpe":"cpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"cf275f42acad1b5950c50ffe8ef58fe62cdce028"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.3"}],"ecosystem":"PyPI","package":"werkzeug","purl":"pkg:pypi/werkzeug","repo":"https://github.com/pallets/werkzeug","source":"pysec"}],"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-px8h-6qxv-m22q","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pallets/werkzeug/commit/cf275f42acad1b5950c50ffe8ef58fe62cdce028","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pallets/werkzeug/releases/tag/2.2.3","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.debian.org/security/2023/dsa-5470","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230818-0003/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23934","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pallets/werkzeug","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2023-57.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20230818-0003","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-10T20:57:36.294Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-23934","url":"https://www.cve.org/CVERecord?id=CVE-2023-23934","licence":"CVE Terms of Use","modified":"2025-03-10T21:11:36.910Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-px8h-6qxv-m22q","url":"https://github.com/advisories/GHSA-px8h-6qxv-m22q","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:07.890Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-23934","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23934","licence":"Public domain","modified":"2026-06-17T05:38:19.313Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-57","url":"https://osv.dev/vulnerability/PYSEC-2023-57","licence":"CC-BY-4.0","modified":"2023-11-08T04:11:43.091Z"}],"updatedAt":"2026-11-25T22:58:22.019Z","epss":{"score":0.00521,"percentile":0.45713,"date":"2026-12-01T12:00:22.000Z"}}