Vulnerabilities · 2026 · Palletsprojects
CVE-2026-21860
Palletsprojects Werkzeug vulnerability
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.
Affected products
Werkzeug. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Palletsprojects Werkzeug runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/pallets/werkzeug/security/advisories/GHSA-87hc-h4r5-73f7 · Vendor Advisory
- github.com/pallets/werkzeug/commit/7ae1d254e04a0c33e241ac1cca4783ce6c875ca3 · Patch
- nvd.nist.gov/vuln/detail/CVE-2026-21860
- github.com/advisories/GHSA-87hc-h4r5-73f7
- nvd.nist.gov/vuln/detail/CVE-2026-21860
- cve.org/CVERecord?id=CVE-2026-21860
More vulnerabilities in Palletsprojects products
CVE-2026-7246CVE-2025-66221CVE-2025-27516CVE-2024-56326CVE-2024-56201CVE-2024-49767CVE-2024-49766CVE-2024-34069All 25
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.