Skip to content
CriticalVulnerability

CVE-2024-7774: langchainjs path traversal in getFullPath method

Identifier
CVE-2024-7774
Published
Record updated
View JSON
Affected
  • langchain < 0.2.19
Fixed in
0.2.19
  • released September 11, 2024, 48 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

CVE-2024-7774 is a path traversal flaw in the getFullPath method of langchain-ai/langchainjs version 0.2.5. The setFileContent, getParsedFile, and mdelete methods do not sanitize user input, letting attackers write files anywhere on the filesystem, overwrite existing text files, read .txt files, and delete files.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.