| Component | LangChain |
| Severity | critical (CVSS 9.8) |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published (NVD) | 2023-08-15 |
| Last modified | 2026-06-17 |
| Affected versions | < 0.0.325 from the GitHub-reviewed advisory GHSA-prgp-w7vf-ch62 |
| Fixed in | 0.0.325 |
| Weakness | CWE-74 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's analysis reads <= 0.0.232. The ranges above come from the GitHub-reviewed advisory GHSA-prgp-w7vf-ch62. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).
NVD description
An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.
What to do
- Upgrade LangChain to
0.0.325or later. - Do not expose the component's API or UI to the internet without authentication in front of it.