CVE-2024-7774
langchain-ai langchain-ai/langchainjs — Path Traversal in langchain-ai/langchainjs
Description · from the CVE record
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
ProductAffectedFixed inSource
langchain-ai/langchainjsunspecified – < 0.2.190.2.19CNA
langchain-ai\/langchainjs< 0.2.190.2.19CISA-ADP
Scores by source
NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
@huntr_ai (CNA)6.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CISA ADPSSVCExploitation: poc · Automatable: no · Technical impact: partial