{"id":"EUVD-2024-0091","enisaUuid":"daaa719d-e63d-342e-bbb6-e601c16fa8eb","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.","datePublished":"Oct 29, 2024, 12:49:21 PM","dateUpdated":"Oct 29, 2024, 1:31:38 PM","baseScore":6.5,"baseScoreVersion":"3.0","baseScoreVector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","references":"https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee\nhttps://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9\n","aliases":"CVE-2024-7774\nGHSA-hc5w-c9f8-9cc4\nPYSEC-2024-111\n","assigner":"@huntr_ai","epss":0.56,"enisaIdProduct":[{"id":"23439c0e-9639-37c4-a61d-664b2bbef7e3","product":{"name":"langchain-ai/langchainjs","vendor":{"name":"langchain-ai"}},"product_version":"unspecified \u003c0.2.19"}],"enisaIdVendor":[{"id":"6302c3db-34be-3dfe-b26d-c3c5d04e4313","vendor":{"name":"langchain-ai"}}],"enisaIdVulnerability":[{"id":"36546e62-86b0-307c-b3bb-9b9c278c4cab","vulnerability":{"id":"PYSEC-2024-111","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.","datePublished":"Oct 29, 2024, 1:15:00 PM","dateUpdated":"May 2, 2025, 6:39:47 PM","baseScore":0.0,"references":"https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee\nhttps://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee\nhttps://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9\n","enisa_id":"EUVD-2024-0091\n","aliases":"CVE-2024-7774\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 3:04:04 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"98cc4016-e092-35eb-b05d-8846b95f14bc","vulnerability":{"id":"GHSA-hc5w-c9f8-9cc4","description":"Langchain Path Traversal vulnerability","datePublished":"Oct 29, 2024, 3:32:05 PM","dateUpdated":"Nov 1, 2024, 3:24:38 PM","baseScore":null,"references":"https://nvd.nist.gov/vuln/detail/CVE-2024-7774\nhttps://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9\nhttps://github.com/langchain-ai/langchainjs\nhttps://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-111.yaml\nhttps://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee\n","enisa_id":"EUVD-2024-0091\n","aliases":"GHSA-hc5w-c9f8-9cc4\nCVE-2024-7774\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:39:21 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"ad7ce191-c366-39f1-ae86-223826dbe4b1","vulnerability":{"id":"CVE-2024-7774","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.","datePublished":"Oct 29, 2024, 12:49:21 PM","dateUpdated":"Oct 29, 2024, 1:31:38 PM","status":"PUBLISHED","baseScore":6.5,"baseScoreVersion":"3.0","baseScoreVector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","references":"https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee\nhttps://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9\n","enisa_id":"EUVD-2024-0091\n","assigner":"@huntr_ai","epss":0.56,"dataProcessed":"Nov 18, 2026, 7:25:11 AM","vulnerabilityProduct":[{"id":"453e2b8c-15ae-3dac-a2bf-5ec40049337e","product":{"name":"langchain-ai/langchainjs","vendor":{"name":"langchain-ai"}},"product_version":"unspecified \u003c0.2.19"}],"vulnerabilityVendor":[{"id":"d25bb638-54e7-34a5-9fa0-20d643a57335","vendor":{"name":"langchain-ai"}}]}}],"enisaIdAdvisory":[]}