Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2026-27641 EUVD-2026-8616GHSA-65mp-fq8v-56jrPYSEC-2026-341

Flask-Reuploaded vulnerable to Remote Code Execution via Server-Side Template Injection

Published Feb 25, 2026 · Updated Feb 25, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
jugmac00 flask-reuploaded < 1.5.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI flask-reuploaded < 1.5.0 1.5.0 GHSA-65mp-fq8v-56jr

References