# CVE-2023-23934: Wrkzeug's incorrect parsing of nameless cookies leads to __Host- cookies bypass

- Severity: Low 2.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2023-02-14T19:56:22.659Z
- Modified: 2026-09-10T03:50:07.890Z
- Also known as: GHSA-px8h-6qxv-m22q, PYSEC-2023-57
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pallets werkzeug: < 2.2.3
- werkzeug (PyPI): before 2.2.3; before cf275f42acad1b5950c50ffe8ef58fe62cdce028
- palletsprojects werkzeug: before 2.2.3

## Every score

- GitHub_M: CVSS:3.1 2.6 Low `CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 2.6 Low `CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 3.5 Low `CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`

## References

- <https://github.com/pallets/werkzeug/security/advisories/GHSA-px8h-6qxv-m22q> (advisory, vendor-advisory, web)
- <https://github.com/pallets/werkzeug/commit/cf275f42acad1b5950c50ffe8ef58fe62cdce028> (fix, patch, web)
- <https://github.com/pallets/werkzeug/releases/tag/2.2.3> (release-notes, web)
- <https://www.debian.org/security/2023/dsa-5470> (web)
- <https://security.netapp.com/advisory/ntap-20230818-0003/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-23934> (advisory)
- <https://github.com/pallets/werkzeug> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2023-57.yaml> (web)
- <https://security.netapp.com/advisory/ntap-20230818-0003> (web)

## Sources

- CVE List: [CVE-2023-23934](https://www.cve.org/CVERecord?id=CVE-2023-23934), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-px8h-6qxv-m22q](https://github.com/advisories/GHSA-px8h-6qxv-m22q), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-23934](https://nvd.nist.gov/vuln/detail/CVE-2023-23934), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-57](https://osv.dev/vulnerability/PYSEC-2023-57), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-23934 · Whole record: https://cve.day/CVE-2023-23934.json · Rebuilt by cve.day 2026-11-25T22:58:22.019Z
