9.1

PYSEC-2024-111: langchain PyPI

CVSS: 9.1v3.1CriticalPublished
Published 29-10-2024Last modified 09-10-2025

Vulnerability summary

PYSEC-2024-111 is a critical (CVSS 9.1) vulnerability in langchain PyPI.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.1/10
010
Critical · v3.1 (OSV · Pypi), selected by version preference
EPSS score
Not scored
0%100%
No EPSS score yet
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 29-10-2024
    PublishedVulnerability first disclosed.
  2. 09-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

1 score · 1 source · 1 version

EPSS trend

No EPSS score has been published for this record yet.

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

PyPI1 product
  • langchain< a0fad77d6b569e5872bd4a9d33be0c0785e538a9 | All versions (No fix recorded)

1 vendor · 1 product

References

2 links