Langflow < 1.7.0 CORS Misconfiguration Account Takeover and RCE (CVE-2025-34291)

critical Nessus Plugin ID 317391

Language:

Synopsis

The remote host is affected by a remote code execution vulnerability.

Description

The version of Langflow installed on the remote host is prior to 1.7.0. It is, therefore, affected by a remote code execution vulnerability:

- An overly permissive CORS configuration 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 can obtain fresh access tokens for a victim session and use them to access authenticated endpoints, including built-in code-execution functionality, achieving full system compromise. (CVE-2025-34291)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Langflow version 1.7.0 or later.

See Also

https://github.com/langflow-ai/langflow/releases/tag/1.7.0

Plugin Details

Severity: Critical

ID: 317391

File Name: langflow_CVE-2025-34291.nasl

Version: 1.2

Type: Combined

Agent: windows, macosx, unix

Published: 5/28/2026

Updated: 5/29/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: High

Score: 8.4

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2025-34291

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 8.2

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.4

Threat Score: 9.4

Threat Vector: CVSS:4.0/E:A

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Vulnerability Information

CPE: cpe:/a:langflow:langflow

Required KB Items: installed_sw/Langflow

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/18/2025

Vulnerability Publication Date: 12/5/2025

CISA Known Exploited Vulnerability Due Dates: 6/4/2026

Reference Information

CVE: CVE-2025-34291