CVE-2026-27641
CRITICAL 9.8CVSS 3.1Flask-Reuploaded vulnerable to Remote Code Execution via Server-Side Template Injection
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.
- Published
- 25 Feb 2026
- Last modified
- 27 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1336CWE-22
- Also known as
- GHSA-65mp-fq8v-56jrPYSEC-2026-341
- Sources
- NVDJSONOSV GHSA-65mp-fq8v-56jrJSONOSV PYSEC-2026-341JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jugmac00 | flask-reuploadedcpe:2.3:a:jugmac00:flask-reuploaded:*:*:*:*:*:python:*:* |
< 1.5.0 | 1.5.0 |
| OSV | PyPI | flask-reuploaded | < 1.5.0 | 1.5.0 |
References
- https://github.com/jugmac00/flask-reuploaded/commit/d64c6b2f71cb73734fc38baa0e3e156926361288 · Patch, WEB
- https://github.com/jugmac00/flask-reuploaded/pull/180 · Issue Tracking, Patch, WEB
- https://github.com/jugmac00/flask-reuploaded/security/advisories/GHSA-65mp-fq8v-56jr · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27641 · ADVISORY
- https://github.com/jugmac00/flask-reuploaded · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/flask-reuploaded/PYSEC-2026-341.yaml · WEB
- https://pypi.org/project/flask-reuploaded · WEB, PACKAGE
- https://github.com/advisories/GHSA-65mp-fq8v-56jr · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 25 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Feb 2026)