Improper Neutralization of Special Elements Used in a Template Engine Affecting flask-reuploaded package, versions [,1.5.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.05% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-FLASKREUPLOADED-15363340
  • published27 Feb 2026
  • disclosed25 Feb 2026
  • creditJaron Cabral

Introduced: 25 Feb 2026

CVE-2026-27641  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade Flask-Reuploaded to version 1.5.0 or higher.

Overview

Flask-Reuploaded is a Flexible and efficient upload handling for Flask

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine via the name parameter. An attacker can write arbitrary files and execute code on the server by supplying crafted input that triggers server-side template injection.

Workaround

This vulnerability can be mitigated by not passing user input to the name parameter, using auto-generated filenames only, and implementing strict input validation if name must be used.

CVSS Base Scores

version 4.0
version 3.1