{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-7774","published":"2024-10-29T13:15:09.930000Z","last_modified":"2026-06-17T08:20:53.750000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.1,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-29","CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:langchain:langchain.js:0.2.5:*:*:*:*:*:*:*","part":"a","vendor":"langchain","product":"langchain.js","version":"0.2.5"}],"cpes_truncated":false,"vendors":["langchain"],"products":["langchain/langchain.js"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00749,"percentile":0.51152,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-hc5w-c9f8-9cc4","ecosystem":"npm","name":"langchain","purl":"pkg:npm/langchain","ranges":[{"introduced":"0","fixed":"0.2.19"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":70,"links":{"html_es":"/es/cve/CVE-2024-7774/","html_en":"/en/cve/CVE-2024-7774/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-7774","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-7774"},"untrusted":{"vendor_name":"Langchain","product_name":"Langchain.js","desc_en":"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.","affected":[{"untrusted_vendor":"langchain-ai","untrusted_product":"langchain-ai/langchainjs","versions":[]},{"untrusted_vendor":"langchain-ai","untrusted_product":"langchain-ai\\/langchainjs","versions":[]}],"references":[{"url":"https://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9","tags":["Patch"]},{"url":"https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee","tags":["Exploit","Third Party Advisory"]}]}}