CVE-2023-23934
published low CVSS 3.1 · 2.6Wrkzeug's incorrect parsing of nameless cookies leads to __Host- cookies bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pallets | — | werkzeug< 2.2.3 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-149 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | python-werkzeug | Advisory build | 1.0.1+dfsg1-2+deb11u1 | DSA-5470-1 |
| Oracle Linux | 8 | python3-werkzeugaarch64 | Advisory build | 0:0.12.2-4.0.1.el8 | ELSA-2023-12709 |
| Ubuntu | bionic | python-werkzeug | Advisory build | 0.14.1+dfsg1-1ubuntu0.2 | USN-5948-1 |
| Amazon Linux | AL2023 | python-werkzeugnoarch | Listed in advisory | Not stated | ALAS2023-2023-149 |
| Debian | buster | python-werkzeug | Advisory build | 0.14.1+dfsg1-4+deb10u2 | DLA-3346-1 |
| Oracle Linux | 8 | python3-werkzeugx86_64 | Advisory build | 0:0.12.2-4.0.1.el8 | ELSA-2023-12709 |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | python3-werkzeug | Advisory build | 0.14.1+dfsg1-1ubuntu0.2 | USN-5948-1 |
| Ubuntu | focal | python-werkzeug | Advisory build | 0.16.1+dfsg1-2ubuntu0.1 | USN-5948-1 |
| Ubuntu | focal | python3-werkzeug | Advisory build | 0.16.1+dfsg1-2ubuntu0.1 | USN-5948-1 |
| Ubuntu | jammy | python-werkzeug | Advisory build | 2.0.2+dfsg1-1ubuntu0.22.04.1 | USN-5948-1 |
| Ubuntu | jammy | python3-werkzeug | Advisory build | 2.0.2+dfsg1-1ubuntu0.22.04.1 | USN-5948-1 |
| Ubuntu | xenial | python-werkzeug | Advisory build | 0.10.4+dfsg1-1ubuntu1.2+esm1 | USN-5948-1 |
| Ubuntu | xenial | python3-werkzeug | Advisory build | 0.10.4+dfsg1-1ubuntu1.2+esm1 | USN-5948-1 |
| Amazon Linux | AL2023 | python-werkzeugsrc | Listed in advisory | Not stated | ALAS2023-2023-149 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 2.6 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pallets | werkzeug | < 2.2.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
5- https://github.com/pallets/werkzeug/commit/cf275f42acad1b5950c50ffe8ef58fe62cdce028
- https://github.com/pallets/werkzeug/releases/tag/2.2.3
- https://github.com/pallets/werkzeug/security/advisories/GHSA-px8h-6qxv-m22q
- https://security.netapp.com/advisory/ntap-20230818-0003/
- https://www.debian.org/security/2023/dsa-5470
Provider assertions
3GitHub_M · cna
Wrkzeug's incorrect parsing of nameless cookies leads to __Host- cookies bypass
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 077766c51625474d746befffb6bb3071c755fcdc17046f757b55d419b73bbb3a
- Ingested
- 23 Sep 2026, 08:06:35 UTC
- Source record
- Official CVE record