CVE-2024-7774
CVE-2024-7774 · Path Traversal in langchain-ai/langchainjs
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
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.
CVSS 6.5 · Moyenne · EPSS 0,6% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: node
Produits et versions concernés
langchain-ai/langchainjs
- Versions du logiciel
- ≥ unspecified, < 0.2.19: Concernée (custom)
Mettez à jour vers 0.2.19
langchain npm
- Plages de versions concernées
- SEMVER: < 0.2.19
Mettez à jour vers 0.2.19