PT-2023-2612

CVE-2023-23934

·

Published

2023-02-14

·

Updated

2025-04-11

Description by

CVSS 3.1
3.5
Low
MetricsAV:A/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Name of the Vulnerable Software and Affected Versions Werkzeug versions prior to 2.2.3
Description The issue is related to how Werkzeug handles "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 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.
Recommendations For Werkzeug versions prior to 2.2.3, update to version 2.2.3 to resolve the issue. As a temporary workaround, consider restricting access to the vulnerable subdomain to minimize the risk of exploitation. Avoid using vulnerable browsers that allow "nameless" cookies.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-PX8H-6QXV-M22Q
ALT-PU-2023-7835
ALT-PU-2025-3304
AZL-13589
DLA-3346-1
DSA-5470-1
OESA-2023-1515
PYSEC-2023-57
RHSA-2023:1018
RHSA-2025:4664
RHSA-2025:9775
ROSA-SA-2024-2530
USN-5948-1
USN-5948-2
Found an issue in the description? Have something to add? Feel free to write us 👾