| 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-05 |
| Last modified | 2026-07-09 |
| Affected versions | < 0.0.236 from the GitHub-reviewed advisory GHSA-gwqq-6vq7-5j86 |
| Fixed in | 0.0.236 |
| Weakness | CWE-94 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's analysis reads = 0.0.194. The ranges above come from the GitHub-reviewed advisory GHSA-gwqq-6vq7-5j86. 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 Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_object_prompt.
What to do
- Upgrade LangChain to
0.0.236or later. - Do not expose the component's API or UI to the internet without authentication in front of it.