cbcvebase.
CVE-2025-34291
published 2025-12-05

CVE-2025-34291: Langflow versions up to and including 1.6.9 contain a chained vulnerability that enables account takeover and remote code execution. An overly permissive CORS…

PriorityP193high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2026-06-04
Exploited in the wild
EPSS
83.63%
99.7th percentile
Langflow versions up to and including 1.6.9 contain a chained vulnerability that enables account takeover and remote code execution. An overly permissive CORS configuration (allow_origins='*' with allow_credentials=True) combined with a refresh token cookie configured as SameSite=None allows a malicious webpage to perform cross-origin requests that include credentials and successfully call the refresh endpoint. An attacker-controlled origin can therefore obtain fresh access_token / refresh_token pairs for a victim session. Obtained tokens permit access to authenticated endpoints — including built-in code-execution functionality — allowing the attacker to execute arbitrary code and achieve full system compromise.

Affected

2 ranges
VendorProductVersion rangeFixed in
langflowlangflow<= 1.6.9
langflowlangflow0 – 1.6.9

Detection & IOCsextracted from sources · hover to see the quote

url/api/v1/refresh
url/api/v1/validate/code
cookierefresh_token; SameSite=None
sigma
Nuclei template id: CVE-2025-34291 — OPTIONS /api/v1/refresh with Origin header; match Access-Control-Allow-Origin + Access-Control-Allow-Credentials: true in response
  • Detect CORS misconfiguration probe: HTTP OPTIONS request to /api/v1/refresh with an arbitrary Origin header returning both 'Access-Control-Allow-Origin: <attacker-origin>' and 'Access-Control-Allow-Credentials: true' in the response headers.
  • Monitor for cross-origin POST requests to /api/v1/refresh that successfully return new access_token / refresh_token pairs — especially from origins not belonging to the legitimate Langflow deployment.
  • Alert on POST requests to /api/v1/validate/code from sessions whose tokens were recently refreshed via a cross-origin request, as this endpoint provides built-in code-execution functionality.
  • Shodan/FOFA exposure query: search for internet-facing Langflow instances using 'html:"Langflow"' (Shodan) or 'body="Langflow"' (FOFA) to identify attack surface; approximately 7,000 instances are publicly exposed.
  • CVE-2025-34291 has been actively exploited by the Iranian state-sponsored group MuddyWater as an initial access vector; correlate Langflow exploitation activity with subsequent OWA brute-force, credential harvesting, and data exfiltration TTPs targeting aviation, energy, and government sectors.
  • Inspect response headers on all Langflow API endpoints for 'Access-Control-Allow-Origin: *' co-existing with 'Access-Control-Allow-Credentials: true' — this combination is the root misconfiguration enabling the attack chain.
  • ·Vulnerability only affects Langflow versions up to and including 1.6.9; version 1.7.0 and later (specifically v1.9.3 per CISA notes) restrict CORS origins properly.
  • ·The attack chain requires three combined weaknesses to be present simultaneously: overly permissive CORS (allow_origins='*' with allow_credentials=True), absence of CSRF protection, and the presence of the code-execution endpoint — all three must exist for full exploitation.
  • ·Exploitation requires victim interaction (UI:R per CVSS) — the victim must visit a malicious webpage while authenticated to Langflow for the cross-origin credentialed request to succeed.

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv4.09.4CRITICALCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vulncheck9.4CRITICAL
cisa9.4CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.