{"answers":{"affected":"3 open source packages ship an affected version, including werkzeug. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-66221 in the wild and no public exploit code.","fix":"Upgrade werkzeug to 3.1.4 or later.","what":"CVE-2025-66221 is a medium-severity denial of service vulnerability in pallets werkzeug, published on 29 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-66221 and fix it if it is affected.\n\nWhat it is: CVE-2025-66221 is a medium-severity denial of service vulnerability in pallets werkzeug, published on 29 Nov 2025. 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-2025-66221 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- werkzeug (PyPI): affected all versions; fixed in 3.1.4\n- werkzeug (PyPI): affected all versions; fixed in 3.1.4\n- werkzeug (PyPI): affected all versions; fixed in 3.1.4\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-2025-66221/ (Markdown: https://insights.sbomify.com/CVE-2025-66221/index.md)","id":"CVE-2025-66221","markdown":"https://insights.sbomify.com/CVE-2025-66221/index.md","name":"CVE-2025-66221","record":{"aliases":["ALPINE-CVE-2025-66221","CLEANSTART-2026-EI28722","CLEANSTART-2026-FI32293","CLSA-2026-1772583182","CLSA-2026-1789365574","ECHO-7d05-d296-ca8f","GHSA-hgf8-39gv-g3f2","MINI-ccw2-c5hx-4v4h","MINI-p3rh-jr33-5r68","PYSEC-2026-2046","ROOT-APP-PYPI-CVE-2025-66221","openSUSE-SU-2025:15848-1"],"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 applications using Werkzeug on Windows by requesting paths with special device names, leading to denial of service.","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. Prior to version 3.1.4, Werkzeug's safe_join function allows path segments with Windows device names. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. 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 patched in version 3.1.4.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Werkzeug safe_join() allows Windows special device names","id":"CVE-2025-66221","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":4,"n_references":3,"next":{"headline":"DeepChat Cross-Site Scripting(XSS) escalate to Remote Code Execution(RCE)","id":"CVE-2025-66222"},"packages":[{"ecosystem":"PyPI","fixed":["3.1.4"],"introduced":["0"],"last_affected":[],"package":"werkzeug","purl":null,"source":"GHSA-hgf8-39gv-g3f2"},{"ecosystem":"PyPI","fixed":["3.1.4"],"introduced":["0"],"last_affected":[],"package":"werkzeug","purl":"pkg:pypi/werkzeug","source":"GHSA-hgf8-39gv-g3f2"},{"ecosystem":"PyPI","fixed":["3.1.4"],"introduced":["0"],"last_affected":[],"package":"werkzeug","purl":"pkg:pypi/werkzeug","source":"PYSEC-2026-2046"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.22.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-openapi-core","purl":"pkg:rpm/opensuse/python-openapi-core\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15848-1"}],"prev":{"headline":"Envoy's TLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byte","id":"CVE-2025-66220"},"products":["werkzeug"],"published":"2025-11-29","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","id":"CVE-2026-27199","kev_date_added":null,"published":"2026-02-21"},{"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"}],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-12-01","vendors":["pallets"]},"summary":"Attackers can cause indefinite hangs in applications using Werkzeug on Windows by requesting paths with special device names, leading to denial of service.","url":"https://insights.sbomify.com/CVE-2025-66221/"}