GHSA-hc5w-c9f8-9cc4 · Severity: medium · Ecosystem: npm — Langchain Path Traversal vulnerability
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.
Conclusion & alert: CVE-2024-7774 is rated High Exploit Risk (65.8/100): CVSS Critical severity, with low exploitation likelihood (EPSS 0.55%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.60% | 0.55% | -0.05% |
| 2 | 2026-03-27 | 0.46% | 0.60% | +0.14% |
| 3 | 2026-03-22 | — | 0.46% | — |
Full EPSS history (17 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.1 | 3.1 | CRITICAL |
|
3.9 | 5.2 | [email protected] |
| 6.5 | 3.0 | MEDIUM |
|
3.9 | 2.5 | [email protected] |
GHSA-hc5w-c9f8-9cc4 · Severity: medium · Ecosystem: npm — Langchain Path Traversal vulnerability
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| langchain | langchain.js | 0.2.5 | cpe:2.3:a:langchain:langchain.js:0.2.5:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9 | Patch |
| https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee | Exploit Third Party Advisory |