{"answers":{"affected":"3 open source packages ship an affected version, including flask-reuploaded. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-27641 in the wild and no public exploit code.","fix":"Upgrade flask-reuploaded to 1.5.0 or later.","what":"CVE-2026-27641 is a critical code injection vulnerability in jugmac00 flask-reuploaded, published on 25 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-27641 and fix it if it is affected.\n\nWhat it is: CVE-2026-27641 is a critical code injection vulnerability in jugmac00 flask-reuploaded, published on 25 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-27641 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- flask-reuploaded (PyPI): affected all versions; fixed in 1.5.0\n- flask-reuploaded (PyPI): affected all versions; fixed in 1.5.0\n- flask-reuploaded (PyPI): affected all versions; fixed in 1.5.0\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-27641/ (Markdown: https://insights.sbomify.com/CVE-2026-27641/index.md)","id":"CVE-2026-27641","markdown":"https://insights.sbomify.com/CVE-2026-27641/index.md","name":"CVE-2026-27641","record":{"aliases":["GHSA-65mp-fq8v-56jr","PYSEC-2026-341"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Flask file upload library","requires_auth":"none","summary":"Remote attackers can achieve arbitrary file write and remote code execution via Server-Side Template Injection in Flask-Reuploaded.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"flask-reuploaded","vendor":"jugmac00"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"Flask-Reuploaded provides file uploads for Flask. A critical path traversal and extension bypass vulnerability in versions prior to 1.5.0 allows remote attackers to achieve arbitrary file write and remote code execution through Server-Side Template Injection (SSTI). Flask-Reuploaded has been patched in version 1.5.0. Some workarounds are available. Do not pass user input to the `name` parameter, use auto-generated filenames only, and implement strict input validation if `name` must be used.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-07-23","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-07-23T08:48:45Z","kind":"github_poc","ref":"https://github.com/Max78000/CVE-2026-27641-Flask-Reuploaded","stars":0,"title":"PoC and test server"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Flask-Reuploaded vulnerable to Remote Code Execution via Server-Side Template Injection","id":"CVE-2026-27641","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"free5GC has Improper Input Validation in UDM UEAU Service","id":"CVE-2026-27642"},"packages":[{"ecosystem":"PyPI","fixed":["1.5.0"],"introduced":["0"],"last_affected":[],"package":"flask-reuploaded","purl":null,"source":"GHSA-65mp-fq8v-56jr"},{"ecosystem":"PyPI","fixed":["1.5.0"],"introduced":["0"],"last_affected":[],"package":"flask-reuploaded","purl":"pkg:pypi/flask-reuploaded","source":"GHSA-65mp-fq8v-56jr"},{"ecosystem":"PyPI","fixed":["1.5.0"],"introduced":["0"],"last_affected":[],"package":"flask-reuploaded","purl":"pkg:pypi/flask-reuploaded","source":"PYSEC-2026-341"}],"prev":{"headline":"tfplan2md has Sensitive Value Exposure in Generated Reports","id":"CVE-2026-27640"},"products":["flask-reuploaded"],"published":"2026-02-25","related":[],"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-25","vendors":["jugmac00"]},"summary":"Remote attackers can achieve arbitrary file write and remote code execution via Server-Side Template Injection in Flask-Reuploaded.","url":"https://insights.sbomify.com/CVE-2026-27641/"}