CVE catalog

CVE-2026-21860

python-werkzeug: CVE-2026-21860

[CVE catalog]

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

Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.5, Werkzeug's safe_join function allows path segments with Windows device names that have file extensions or trailing spaces. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. Windows still accepts them with any file extension, such as CON.txt, or trailing spaces such as CON. This issue has been patched in version 3.1.5.

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
PyPIwerkzeugNot reported3.1.5fixed
Alpinepy3-werkzeug3.243.1.5-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
PyPIwerkzeugPyPINot reported3.1.5Not reportedGHSA-87HC-H4R5-73F7Not reported
Alpinepy3-werkzeugapk3.243.1.5-r0Not reportedALPINE-CVE-2026-21860Not 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

      dsa · python-werkzeug · debian · bookworm

    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      dsa · python-werkzeug · debian · bookworm

  • [python-werkzeug-doc]Not affected

    Source package: [python-werkzeug]

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

      Not affected

      dsa · python-werkzeug · debian · bookworm

    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      dsa · python-werkzeug · debian · bookworm

Observed:

References