| Component | LangChain |
| Severity | high (CVSS 8.1) |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| Published (NVD) | 2024-03-04 |
| Last modified | 2026-06-17 |
| Affected versions | < 0.0.339 from the GitHub-reviewed advisory GHSA-h59x-p739-982c |
| Fixed in | 0.0.339 |
| Weakness | CWE-22CWE-31 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's analysis reads < 0.1.12. The ranges above come from the GitHub-reviewed advisory GHSA-h59x-p739-982c. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).
NVD description
LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure of an API key for a large language model online service, or remote code execution. (A patch is available as of release 0.1.29 of langchain-core.)
What to do
- Upgrade LangChain to
0.0.339or later. - Do not expose the component's API or UI to the internet without authentication in front of it.