Live threats

All CVEs / Palletsprojects

CVE-2023-23934Palletsprojects Werkzeug

Low 3.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Werkzeug.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
palletsprojectswerkzeug< 2.2.3

Official sources

References

Links published by the sources. Open them with care.