VulnarioBlogFlask vulnerabilities
Flask Vulnerabilities: The 4 Most Critical Flask Security Bugs (CVEs)
Flask vulnerabilities are security flaws in Flask that attackers can abuse to steal data, take over a server or interrupt a service. Flask is a lightweight Python web framework. The National Vulnerability Database (NVD) lists 4 CVEs for Flask, 0 of them rated critical, and 1 was published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.
This guide lists the 4 most critical Flask security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Flask security basics and a free way to be told about the next Flask CVE as soon as it is published.
Key takeaways
- No Flask CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
- 0 Flask CVEs are rated critical (CVSS v3), and 1 new one was published in the last 12 months.
- The newest CVE in this guide is CVE-2026-27205, published Feb 21, 2026.
- You can monitor Flask for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.
How we ranked these Flask CVEs
We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.
Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.
The 4 most critical Flask CVEs at a glance
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2023-30861 | 7.5 High | 2023-05-02 | Security flaw | No |
| 2 | CVE-2019-1010083 | 7.5 High | 2019-07-17 | Denial of service | No |
| 3 | CVE-2018-1000656 | 7.5 High | 2018-08-20 | Improper input validation | No |
| 4 | CVE-2026-27205 | 4.3 Medium | 2026-02-21 | Information disclosure | No |
Each Flask CVE explained
1. CVE-2023-30861: Security flaw
- What NVD says
- Flask is a lightweight WSGI web application framework. When all of the following conditions are met, a response containing data intended for one client may be cached and subsequently sent by the proxy to other clients. If the proxy also caches `Set-Cookie` headers, it may send one client's `session` cookie to other clients.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality.
- Affected versions
- before 2.2.5; 2.3.0 to before 2.3.2
- What to do
- Upgrade to the fixed release for your branch (2.2.5, 2.3.2) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
2. CVE-2019-1010083: Denial of service
- What NVD says
- The Pallets Project Flask before 1.0 is affected by: unexpected memory usage. The impact is: denial of service. The attack vector is: crafted encoded JSON data. The fixed version is: 1. NOTE: this may overlap CVE-2018-1000656.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on availability.
- Affected versions
- before 1.0
- What to do
- Upgrade to 1.0 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
3. CVE-2018-1000656: Improper input validation
- What NVD says
- The Pallets Project flask version Before 0.12.3 contains a CWE-20: Improper Input Validation vulnerability in flask that can result in Large amount of memory usage possibly leading to denial of service. This attack appear to be exploitable via Attacker provides JSON data in incorrect encoding. This vulnerability appears to have been fixed in 0.12.3. NOTE: this may overlap CVE-2019-1010083.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on availability.
- Affected versions
- before 0.12.3
- What to do
- Upgrade to 0.12.3 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
4. CVE-2026-27205: Information disclosure
- What NVD says
- Flask is a web server gateway interface (WSGI) web application framework. In versions 3.1.2 and below, when the session object is accessed, Flask should set the Vary: Cookie header., resulting in a Use of Cache Containing Sensitive Information vulnerability. The logic instructs caches not to cache the response, as it may contain information specific to a logged in user.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and user interaction. It has limited impact on confidentiality.
- Affected versions
- before 3.1.3
- What to do
- Upgrade to 3.1.3 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
Flask security checklist
- Update the core, themes, plugins and extensions as soon as security releases appear.
- Remove plugins, themes and modules you do not use.
- Give users the minimum role they need and enable two-factor authentication for administrators.
- Keep debug and development modes off in production.
- Back up files and database before every update.
- Put a web application firewall and rate limiting in front of login pages.
Your stack is bigger than Flask. A flaw anywhere in the chain can be the way in, so also review our guides to Python vulnerabilities, Django vulnerabilities and FastAPI vulnerabilities.
How to get alerted about new Flask vulnerabilities
NVD received 1 new Flask CVE in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:
- Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
- Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
- Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.
Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Flask and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.
- Free: all technologies, alerts grouped at most every 12 hours.
- Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.
Related security guides
Few stacks run Flask alone. These guides cover the technologies it is most often deployed with.
- Python vulnerabilities: Python is one of the most popular programming languages for web, data and automation.
- Django vulnerabilities: Django is a high-level Python web framework.
- FastAPI vulnerabilities: FastAPI is a modern Python web framework for building APIs.
- Angular vulnerabilities: Angular is Google's TypeScript web application framework (AngularJS is its legacy predecessor).
- Apache Struts vulnerabilities: Apache Struts is a Java web application framework, known for the 2017 Equifax breach.
- Drupal vulnerabilities: Drupal is an open-source content management system and framework.
- Moodle vulnerabilities: Moodle is the world's most widely used open-source learning management system.
Frequently asked questions about Flask vulnerabilities
What are the most critical Flask vulnerabilities?
Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Flask CVEs include CVE-2023-30861 (CVSS 7.5), CVE-2019-1010083 (CVSS 7.5), CVE-2018-1000656 (CVSS 7.5). The guide above ranks the 4 most critical with affected versions and fixes.
Have Flask vulnerabilities been exploited in real attacks?
For the Flask product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep Flask patched.
How many vulnerabilities does Flask have?
As of Nov 3, 2026 the National Vulnerability Database lists 4 CVEs for Flask, with 0 rated critical by CVSS v3. 1 was published in the previous twelve months.
How can I get alerted when a new Flask CVE is published?
Add Flask to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Flask and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.
Is Flask secure?
Flask is as secure as its patch level. NVD published 1 new Flask CVE in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.
What is CVE-2023-30861?
CVE-2023-30861 is a high Flask vulnerability with a CVSS score of 7.5, published May 2, 2023. Flask is a lightweight WSGI web application framework. When all of the following conditions are met, a response containing data intended for one client may be cached and subsequently sent by the proxy to other clients.
Sources
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.