7.5
CVE-2026-34070
- EPSS 1.07%
- Veröffentlicht 31.03.2026 02:01:49
- Zuletzt bearbeitet 01.06.2026 16:23:18
- Quelle security-advisories@github.com
- CVE-Watchlists
- Unerledigt
LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions
LangChain is a framework for building agents and LLM-powered applications. Prior to version 1.2.22, multiple functions in langchain_core.prompts.loading read files from paths embedded in deserialized config dicts without validating against directory traversal or absolute path injection. When an application passes user-influenced prompt configurations to load_prompt() or load_prompt_from_config(), an attacker can read arbitrary files on the host filesystem, constrained only by file-extension checks (.txt for templates, .json/.yaml for examples). This issue has been patched in version 1.2.22.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
Langchain ≫ Langchain Core SwPlatformpython Version < 1.2.22
| Typ | Quelle | Score | Percentile |
|---|---|---|---|
| EPSS | FIRST.org | 1.07% | 0.605 |
| Quelle | Base Score | Exploit Score | Impact Score | Vector String |
|---|---|---|---|---|
| security-advisories@github.com | 7.5 | 3.9 | 3.6 |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
|
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Für Zugriff zu Vulnerability Intelligence ist ein VulnDex Zugang erforderlich.
https://github.com/langchain-ai/langchain/security/advisories/GHSA-qh6h-p6c9-ff54
https://github.com/langchain-ai/langchain/commit/27add913474e01e33bededf4096151130ba0d47c
https://github.com/langchain-ai/langchain/releases/tag/langchain-core==1.2.22