BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2023-30861 in Palletsprojects Flask

High 7.5

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 ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS1.3%
EPSS percentile71th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Palletsprojects Flask < 2.2.5 ≥ 2.3.0, < 2.3.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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. The severity depends on the application's use of the session and the proxy's behavior regarding cookies. The risk depends on all these conditions being met. 1. The application must be hosted behind a caching proxy that does not strip cookies or ignore responses with cookies. 2. The application sets `session.permanent = True` 3. The application does not access or modify the session at any point during a request. 4. `SESSION_REFRESH_EACH_REQUEST` enabled (the default). 5. The application does not set a `Cache-Control` header to indicate that a page is private or should not be cached. This happens because vulnerable versions of Flask only set the `Vary: Cookie` header when the session is accessed or modified, not when it is refreshed (re-sent to update the expiration) without being accessed or modified. This issue has been fixed in versions 2.3.2 and 2.2.5.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-30861
BreachSpider IDBS-2023-GLOBAL-059516-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2023-05-02
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-539: CWE-539

Related attack patterns (CAPEC)

CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies via CWE-539

CAPEC-59 Session Credential Falsification through Prediction via CWE-539

CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-539

CAPEC-39 Manipulating Opaque Client-based Data Tokens via CWE-539

CAPEC-21 Exploitation of Trusted Identifiers via CWE-539

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Flask applications using a caching proxy may inadvertently share session cookies between clients due to improper caching of responses and Set-Cookie headers.

The vulnerability arises when a caching proxy caches responses from a Flask application, including the Set-Cookie headers. If the same response is served to multiple clients, their session cookies can be mixed, leading to unauthorized access.

Questions

What is CVE-2023-30861?

Flask applications using a caching proxy may inadvertently share session cookies between clients due to improper caching of responses and Set-Cookie headers.

What is the CVSS score for CVE-2023-30861?

CVE-2023-30861 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 1.3%.

Is CVE-2023-30861 actively exploited?

No confirmed active exploitation of CVE-2023-30861 as of 2026-09-25.

How do I remediate CVE-2023-30861?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2023-30861?

CVE-2023-30861 affects Palletsprojects Flask.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Palletsprojects","product":"Flask","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.