A path traversal vulnerability exists in the `getFullPath` method of langchain-ai/langchainjs version 0.2.5.…
Historical advisory recorded 25 Oct 2026 01:17:23 UTC. Read the latest advisory.
nvd · CVE-2024-7774
PublishedA 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2024-7774
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Analyzed
Weakness classifications: CWE-29 · CWE-22
Original publisher date fields
published: 2024-10-29T13:15:09.930
lastModified: 2026-06-17T08:20:53.750
1 source CPE criteria · context only
- cpe:2.3:a:langchain:langchain.js:0.2.5:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON