CVE-2023-23934Palletsprojects Werkzeug
Low 3.5 No auth needed
Follow: this CVE · Palletsprojects · Palletsprojects Werkzeug We alert you by email or Slack (account required).
- Priority
- 36
- CVSS 3.1
- 3.5
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 45
- Auth required
- No
- Published
- Feb 14, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Werkzeug.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | werkzeug |
< 2.2.3 |
2.2.3 |
pip install "werkzeug>=2.2.3" |
| PyPI | werkzeug |
< 2.2.3 |
2.2.3 |
pip install "werkzeug>=2.2.3" |
Per OSV / GitHub Advisories (GHSA-px8h-6qxv-m22q, PYSEC-2023-57). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| palletsprojects | werkzeug | < 2.2.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Vendor Advisory
- security.netapp.com
- www.debian.org