GHSA-c995-4fw3-j39m: Duplicate Advisory Langflow Vulnerable To Code Injection Vulnerability
CRITICALGHSA-c995-4fw3-j39m is a CRITICAL (CVSS 9.8) langflow vulnerable to code injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves langflow vulnerable to code injection via the `/api/v1/validate/code` endpoint. Remediation is available by upgrading affected packages to version 1.3.0.
GHSA-c995-4fw3-j39m at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix GHSA-c995-4fw3-j39m
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install langflow>=1.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show langflow
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-c995-4fw3-j39m, inspect your installed packages using pip:
pip show langflow
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.0), your application is affected.
Note: The pip show langflow command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-c995-4fw3-j39m Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
langflow
|
PyPI |
< 1.3.0
|
1.3.0
|
References
Frequently Asked Questions
What is GHSA-c995-4fw3-j39m?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-c995-4fw3-j39m?
Is langflow affected?
What is the CVSS score of GHSA-c995-4fw3-j39m?
What CWE is associated with GHSA-c995-4fw3-j39m?
How can I check PyPI dependencies for GHSA-c995-4fw3-j39m?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c995-4fw3-j39m",
"modified" : "2025-06-17T20:13:58Z",
"published" : "2025-04-07T15:31:22Z",
"withdrawn" : "2025-06-17T20:13:58Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Langflow Vulnerable to Code Injection via the `/api/v1/validate/code` endpoint",
"details" : "### Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-rvqx-wpfh-mfx7. This link is maintained to preserve external references.\n\n### Original Description\n\nLangflow versions prior to 1.3.0 are susceptible to code injection in the `/api/v1/validate/code` endpoint. A remote and unauthenticated attacker can send crafted HTTP requests to execute arbitrary code.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "langflow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3248"
}, {
"type" : "WEB",
"url" : "https://github.com/langflow-ai/langflow/pull/6911"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/langflow-ai/langflow"
}, {
"type" : "WEB",
"url" : "https://github.com/langflow-ai/langflow/releases/tag/1.3.0"
}, {
"type" : "WEB",
"url" : "https://www.horizon3.ai/attack-research/disclosures/unsafe-at-any-speed-abusing-python-exec-for-unauth-rce-in-langflow-ai"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-306", "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-07T21:13:20Z",
"nvd_published_at" : "2025-04-07T15:15:44Z"
}
}