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
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2024-7774 · CVE overview and exploitation status
nvd · CVE-2024-7774
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.