← Vulnerability feed

Vulnerability record · CVE-2024-7774 · published 29 October 2024

CVE-2024-7774: Langchain.js path traversal vulnerability

Langchain · Langchain.Js

A path traversal vulnerability exists in the `getFullPath` method of langchain-ai/langchainjs version 0.2.5. This vulnerability allows attackers to save files anywhere in the filesystem, overwrite existing text files, read `.txt` files, and delete files. The vulnerability is exploited through the `setFileContent`, `getParsedFile`, and `mdelete` methods, which do not properly sanitize user input.

9.1 CVSS 3.1 Critical EPSS 0.55% · top 56.1% CWE-29 · CWE-29CWE-22 · Path traversal
9.1CVSS 3.1 base score
0.55%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 1 tagged exploit
17 Jun 2026Last modified by NVD

Description

A path traversal vulnerability exists in the `getFullPath` method of langchain-ai/langchainjs version 0.2.5. This vulnerability allows attackers to save files anywhere in the filesystem, overwrite existing text files, read `.txt` files, and delete files. The vulnerability is exploited through the `setFileContent`, `getParsedFile`, and `mdelete` methods, which do not properly sanitize user input.

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

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-7774 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.1CVE-2025-68665Langchain.js deserialization of untrusted data vulnerabilityLangChain is a framework for building LLM-powered applications. Prior to @langchain/core versions 0.3.80 and 1.1.8, and prior to langchain versions 0…EPSS 0.79%9.8CVE-2026-85102Checkpoint gaia embedded improper certificate validation vulnerabilityImproper certificate trust validation during VPN negotiation in Check Point Quantum Security Gateway may allow an unauthenticated remote attacker to …KEVEPSS 0.99%6.5CVE-2023-50224TP-Link router httpd authentication bypass exposes stored credentialsThe httpd service on affected TP-Link router firmware contains an improper authentication flaw (CWE-290) that lets a network-adjacent attacker bypass…KEVEPSS 16%analysed10.0CVE-2024-54085AMI MegaRAC SPx BMC authentication bypass via Redfish Host InterfaceAMI's SPx BMC implementation contains an authentication bypass reachable remotely through the Redfish Host Interface, classified as CWE-290 (authenti…KEVEPSS 61%analysed9.8CVE-2024-4358Progress Telerik Report Server authentication bypass via spoofingTelerik Report Server 2024 Q1 (10.0.24.305) and earlier on IIS contains an authentication bypass by spoofing (CWE-290). An unauthenticated remote att…KEVEPSS 97%analysed5.5CVE-2023-41991Apple iOS, iPadOS and macOS certificate validation bypassApple iOS, iPadOS and macOS contain an improper certificate validation flaw (CWE-295) that lets a malicious app bypass signature validation. Apple st…KEVEPSS 13%analysed7.8CVE-2023-20963Android WorkSource parcel mismatch local privilege escalationCVE-2023-20963 is a parcel mismatch in Android's WorkSource component that allows a local attacker to escalate privileges without additional executio…KEVEPSS 1.5%analysed9.8CVE-2023-23397Microsoft Outlook improper input validation privilege escalationCVE-2023-23397 is a critical elevation of privilege flaw in Microsoft Outlook caused by improper input validation and an authentication bypass by cap…KEVEPSS 97%analysed

Source: NIST National Vulnerability Database (record CVE-2024-7774), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.