{"id":"PYSEC-2024-111","revision":null,"records":[{"revision":"493c50b41b914facb8ac90ed80f01515","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-7774","aliases":[],"title":"Path Traversal in langchain-ai/langchainjs","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.","state":0,"publishedAt":"2024-10-29T12:49:21.165+00:00","modifiedAt":"2024-10-29T13:31:38.566+00:00","affected":[{"ecosystem":"Vendor product","name":"langchain-ai/langchainjs","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"langchain-ai\",\n                    \"product\": \"langchain-ai/langchainjs\",\n                    \"versions\": [\n                        {\n                            \"version\": \"unspecified\",\n                            \"lessThan\": \"0.2.19\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"custom\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee","https://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-7774","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-7774","identifiers":["CVE-2024-7774"]},"retained":false,"historicalAffected":[]},{"revision":"145c530404204964b259c938f7eba70f","observedAt":"2026-11-21T05:46:38.484+00:00","statement":{"source":"euvd","id":"EUVD-2024-0091","aliases":["CVE-2024-7774","GHSA-hc5w-c9f8-9cc4","PYSEC-2024-111"],"title":"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…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"severity":null}],"references":["https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee","https://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0091","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 29, 2024, 12:49:21 PM","dateUpdated":"Oct 29, 2024, 1:31:38 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-0091","identifiers":["EUVD-2024-0091","CVE-2024-7774","GHSA-hc5w-c9f8-9cc4","PYSEC-2024-111"]},"retained":false,"historicalAffected":[]},{"revision":"60d4dd6373db402a8954b174d157e4e5","observedAt":"2026-10-25T01:17:23.283+00:00","statement":{"source":"nvd","id":"CVE-2024-7774","aliases":[],"title":"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…","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.","state":0,"publishedAt":"2024-10-29T13:15:09.93+00:00","modifiedAt":"2026-06-17T08:20:53.75+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"severity":"CRITICAL"},{"system":"CVSS 3.0 · security@huntr.dev · Secondary","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9","https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-7774","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-29","CWE-22"],"productCriteria":["cpe:2.3:a:langchain:langchain.js:0.2.5:*:*:*:*:*:*:*"],"sourceDates":{"published":"2024-10-29T13:15:09.930","lastModified":"2026-06-17T08:20:53.750"},"relatedAdvisories":[],"note":"NVD 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."},"key":"nvd:CVE-2024-7774","identifiers":["CVE-2024-7774"]},"retained":false,"historicalAffected":[]},{"revision":"3be10219bd194f399ba97a886aac7d0e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hc5w-c9f8-9cc4","aliases":["CVE-2024-7774"],"title":"Langchain Path Traversal vulnerability","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.","state":0,"publishedAt":"2024-10-29T15:32:05+00:00","modifiedAt":"2026-08-07T08:12:27.3589698+00:00","affected":[{"ecosystem":"npm","name":"langchain","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.2.19"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2024-7774","https://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9","https://github.com/langchain-ai/langchainjs","https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-111.yaml","https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee"],"sourceUrl":"https://github.com/advisories/GHSA-hc5w-c9f8-9cc4","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hc5w-c9f8-9cc4","identifiers":["GHSA-hc5w-c9f8-9cc4","CVE-2024-7774"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-22T16:25:55.0701968+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T16:25:55.0701968+00:00","lastSuccessAt":"2026-11-22T16:25:55.2486505+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:55.2486514+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-a00cc431548e20f01f2da20f449eca4a9c3c2d80f0a99ee8150099224d339982-f889044d5952ca2c043a3f79edce0c851043d7aa07652c964a93712ef2aae335","complete":true,"records":430476,"lastAttemptAt":"2026-11-22T16:25:40.279669+00:00","lastSuccessAt":"2026-11-22T16:25:40.2330056+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:40.279669+00:00","snapshotPublishedAt":"2026-11-22T16:24:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-82e2c24a4f614937853e600b1d5b95b9","complete":false,"records":13928,"lastAttemptAt":"2026-11-22T16:28:09.6714324+00:00","lastSuccessAt":"2026-11-22T16:28:09.667+00:00","error":"31 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-22T16:28:09.667+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13944,"expectedIdentifiers":13976,"failedIdentifiers":31},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-22T16:25:55.0701968+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T16:25:55.0701968+00:00","lastSuccessAt":"2026-11-22T16:25:55.2495262+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:55.2495265+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b418bc3a0a804db68d2746e614753140","complete":false,"records":13940,"lastAttemptAt":"2026-11-22T16:26:20.8835169+00:00","lastSuccessAt":"2026-11-22T16:26:20.879+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:26:20.879+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13975,"expectedIdentifiers":13976,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-a9c862bcf8bde52ce182f69609f4579ca2fc6956e44f694dddf6a66800619683","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T16:25:54.9004528+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:54.9004528+00:00","snapshotPublishedAt":"2026-11-22T16:18:32+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-22T16:25:40.4282716+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:40.4282716+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-bee95050556198fd967bb73ce720a9ae414cd84a3b278a529e0def1a55b70f2d","complete":true,"records":3214,"lastAttemptAt":"2026-11-22T16:25:55.0134385+00:00","lastSuccessAt":"2026-11-22T11:25:37.2279658+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:55.0134385+00:00","snapshotPublishedAt":"2026-11-22T10:03:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-93f8bde17692d302a32a561f6a40a941db24e5e5c3d8083eda975620fb7a4483","complete":true,"records":232857,"lastAttemptAt":"2026-11-22T16:25:40.5269788+00:00","lastSuccessAt":"2026-11-22T08:27:07.8116265+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:40.5269788+00:00","snapshotPublishedAt":"2026-11-22T07:33:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}