{"answers":{"affected":"3 open source packages ship an affected version, including werkzeug. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-27199 in the wild and no public exploit code.","fix":"Upgrade werkzeug to 3.1.6 or later.","what":"CVE-2026-27199 is a medium-severity denial of service vulnerability in pallets werkzeug, published on 21 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-27199 and fix it if it is affected.\n\nWhat it is: CVE-2026-27199 is a medium-severity denial of service vulnerability in pallets werkzeug, published on 21 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-27199 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- werkzeug (PyPI): affected all versions; fixed in 3.1.6\n- werkzeug (PyPI): affected all versions; fixed in 3.1.6\n- werkzeug (PyPI): affected all versions; fixed in 3.1.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-27199/ (Markdown: https://insights.sbomify.com/CVE-2026-27199/index.md)","id":"CVE-2026-27199","markdown":"https://insights.sbomify.com/CVE-2026-27199/index.md","name":"CVE-2026-27199","record":{"aliases":["ALPINE-CVE-2026-27199","CLEANSTART-2026-DZ40075","CLEANSTART-2026-XY59001","ECHO-1285-c76d-e885","GHSA-29vq-49wr-vm6x","MINI-g328-rhhc-47v3","MINI-vpm4-97qp-6f7g","PYSEC-2026-2320","ROOT-APP-PYPI-CVE-2026-27199"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web library","requires_auth":"none","summary":"Attackers can cause indefinite hangs in Windows-based applications using Werkzeug by requesting paths ending in special device names.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"werkzeug","vendor":"palletsprojects"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-67","name":"Improper Handling of Windows Device Names"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-02-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-02-20T09:24:33Z","kind":"github_poc","ref":"https://github.com/alimezar/CVE-2026-27199-werkzeug-safe-join-bypass-PoC","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Werkzeug safe_join() allows Windows special device names","id":"CVE-2026-27199","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Further research determined the situation described is not a vulnerability.","id":"CVE-2026-27200"},"packages":[{"ecosystem":"PyPI","fixed":["3.1.6"],"introduced":["0"],"last_affected":[],"package":"werkzeug","purl":null,"source":"GHSA-29vq-49wr-vm6x"},{"ecosystem":"PyPI","fixed":["3.1.6"],"introduced":["0"],"last_affected":[],"package":"werkzeug","purl":"pkg:pypi/werkzeug","source":"GHSA-29vq-49wr-vm6x"},{"ecosystem":"PyPI","fixed":["3.1.6"],"introduced":["0"],"last_affected":[],"package":"werkzeug","purl":"pkg:pypi/werkzeug","source":"PYSEC-2026-2320"}],"prev":{"headline":"Formwork Improperly Manages Privileges During User Creation","id":"CVE-2026-27198"},"products":["werkzeug"],"published":"2026-02-21","related":[{"cvss_score":9.8,"headline":"Other in n/a","id":"CVE-2022-29361","kev_date_added":null,"published":"2022-05-24"},{"cvss_score":8,"headline":"Werkzeug DoS: High resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning","id":"CVE-2023-46136","kev_date_added":null,"published":"2023-10-24"},{"cvss_score":7.5,"headline":"Werkzeug may allow high resource usage when parsing multipart form data with many fields","id":"CVE-2023-25577","kev_date_added":null,"published":"2023-02-14"},{"cvss_score":7.5,"headline":"Pallets Werkzeug vulnerable to Path Traversal","id":"CVE-2019-14322","kev_date_added":null,"published":"2019-07-28"},{"cvss_score":6.3,"headline":"Werkzeug safe_join() allows Windows special device names with compound extensions","id":"CVE-2026-21860","kev_date_added":null,"published":"2026-01-08"},{"cvss_score":6.3,"headline":"Werkzeug safe_join() allows Windows special device names","id":"CVE-2025-66221","kev_date_added":null,"published":"2025-11-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-24","vendors":["pallets"]},"summary":"Attackers can cause indefinite hangs in Windows-based applications using Werkzeug by requesting paths ending in special device names.","url":"https://insights.sbomify.com/CVE-2026-27199/"}