CVE-2023-23934

Wrkzeug's incorrect parsing of nameless cookies leads to __Host- cookies bypass

At a glance

Severity
LOW 2.6
EPSS
EPSS 0.51 % · percentile 43 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
NVD status
Modified

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.

Scores

VersionScoreVectorScored by
CVSS 3.1LOW 2.6CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NGitHub_M
CVSS 3.1LOW 2.6CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NNVD · security-advisories@github.com (Secondary)
CVSS 3.1LOW 3.5CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NNVD · nvd@nist.gov (Primary)

Weaknesses (CWE)

Advisories

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
pallets · werkzeugaffected < 2.2.3

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD