GHSA-c995-4fw3-j39m: Duplicate Advisory Langflow Vulnerable To Code Injection Vulnerability

CRITICAL
CVSS 9.8
CWE-94 CWE-306
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-c995-4fw3-j39m
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Duplicate Advisory
Package Ecosystem PyPI
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

langflow fixed: 1.3.0
pip install langflow>=1.3.0
Verify Direct and Transitive Dependencies

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

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-rvqx-wpfh-mfx7. This link is maintained to preserve external references. ### Original Description Langflow 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.

GHSA-c995-4fw3-j39m Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
1.3.0
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?
GHSA-c995-4fw3-j39m is a security vulnerability in Duplicate Advisory involving Langflow Vulnerable to Code Injection via the `/api/v1/validate/code` endpoint under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 1.3.0 across affected packages: langflow.
What version fixes GHSA-c995-4fw3-j39m?
Upgrading to 1.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is langflow affected?
Yes, langflow is affected in releases prior to 1.3.0. Upgrade your dependency to 1.3.0 or later.
What is the CVSS score of GHSA-c995-4fw3-j39m?
GHSA-c995-4fw3-j39m has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-c995-4fw3-j39m?
GHSA-c995-4fw3-j39m is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check PyPI dependencies for GHSA-c995-4fw3-j39m?
Run the dependency tree command: 'pip show langflow'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}