Vulnerability library
Security checkNovember 01, 2024

Langchain Path Traversal vulnerability

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmlangchain

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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.

Recommendation

Update the langchain package to the latest compatible version. Followings are version details:

  • Affected version(s): < 0.2.19
  • Patched version(s): 0.2.19

References

Could your website be exposed too?

SmartScanner can check your website for Langchain Path Traversal vulnerability and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 01, 2024