CVE catalog

CVE-2026-27199

Werkzeug is a comprehensive WSGI web application library. Versions 3.1.5 and below, the safe_join function allows Windows device names as filenames if preceded by other path segments. This was previou

[CVE catalog]

Severity
Medium · CVSS 6.3
Published
Source
[NVD] · [CVE record]
EPSS
0.63% · Oct 25, 2026

Werkzeug is a comprehensive WSGI web application library. Versions 3.1.5 and below, the safe_join function allows Windows device names as filenames if preceded by other path segments. This was previously reported as GHSA-hgf8-39gv-g3f2, but the added filtering failed to account for the fact that safe_join accepts paths with multiple segments, such as example/NUL. The function send_from_directory uses safe_join to safely serve files at user-specified paths under a directory. If the application is running on Windows, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely. This issue has been fixed in version 3.1.6.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-werkzeugsid3.1.9-1not affected
Debianpython-werkzeugforky3.1.9-1not affected
Debianpython-werkzeugtrixie3.1.3-2not affected
Debianpython-werkzeugbookworm2.2.2-3+deb12u1not affected
PipwerkzeugNot reported3.1.6fixed
PyPIwerkzeugNot reported3.1.6fixed
Alpinepy3-werkzeug3.243.1.6-r0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-werkzeugsourcesidNot affectedunimportantNot reportedNot reported
Debianpython-werkzeugsourceforkyNot affectedunimportantNot reportedNot reported
Debianpython-werkzeugsourcetrixieNot affectedunimportantNot reportedNot reported
Debianpython-werkzeugsourcebookwormNot affectedunimportantNot reportedNot reported
PipwerkzeugpipNot reported3.1.6Not reportedNot reportedNot reported
PyPIwerkzeugPyPINot reported3.1.6Not reportedGHSA-29VQ-49WR-VM6XNot reported
Alpinepy3-werkzeugapk3.243.1.6-r0Not reportedALPINE-CVE-2026-27199Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-werkzeug]Not affected

    Source package: [python-werkzeug]

    Details (2)
    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      nvd · python-werkzeug · debian · bookworm

    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      nvd · python-werkzeug · debian · bookworm

  • [python-werkzeug-doc]Not affected

    Source package: [python-werkzeug]

    Details (2)
    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      nvd · python-werkzeug · debian · bookworm

    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      nvd · python-werkzeug · debian · bookworm

Observed:

References