Skip to content
OpenAdvisories
Low · 2.6 CVE-2023-23934 EUVD-2023-0281GHSA-px8h-6qxv-m22qPYSEC-2023-57

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

Published Feb 14, 2023 · Updated Mar 10, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
pallets werkzeug < 2.2.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-werkzeug 2.2.2-3 —
Debian 13 python-werkzeug 2.2.2-3 —
Debian 12 python-werkzeug 2.2.2-3 —
Debian 11 python-werkzeug 1.0.1+dfsg1-2+deb11u1 DSA-5470-1
Debian 10 python-werkzeug 0.14.1+dfsg1-4+deb10u2 DLA-3346-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS python-werkzeug 2.0.2+dfsg1-1ubuntu0.22.04.1 USN-5948-1
Ubuntu 20.04 LTS python-werkzeug 0.16.1+dfsg1-2ubuntu0.1 USN-5948-1
Ubuntu 18.04 LTS python-werkzeug 0.14.1+dfsg1-1ubuntu0.2 USN-5948-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS python-werkzeug 0.10.4+dfsg1-1ubuntu1.2+esm1 USN-5948-1
ReleasePackageFixed inAdvisory
Red Hat OpenStack 17 python-werkzeug +1 2.0.1-5.el9ost RHSA-2023:1018
Red Hat Ceph Storage 8 ceph +27 2:19.2.1-222.el9cp RHSA-2025:9775
Red Hat Ceph Storage 8 cephadm-ansible 1:4.1.4-1.el9cp RHSA-2025:9775
Red Hat Ceph Storage 8 liboath +1 2.6.12-1.el9cp RHSA-2025:9775
Red Hat Ceph Storage 7 ceph +25 2:18.2.1-329.el8cp RHSA-2025:4664
Red Hat Ceph Storage 7 cephadm 2:18.2.1-329.el9cp RHSA-2025:4664
Red Hat Ceph Storage 7 liboath +1 2.6.12-1.el8cp RHSA-2025:4664

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-werkzeug +1 1.0.1-5.amzn2023.0.4 ALAS2023-2023-149

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) python-werkzeug 2.2.3-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 python3-werkzeug 0.12.2-4.0.1.el8 ELSA-2023-12709

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-visualization-server 2.4.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI werkzeug < 2.2.3 2.2.3 GHSA-px8h-6qxv-m22q

Advisories 12

References