| Component | LangChain (langchain-experimental) |
| 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) | 2024-02-26 |
| Last modified | 2026-06-17 |
| Affected versions | < 0.0.52 from the GitHub-reviewed advisory GHSA-v8vj-cv27-hjv8 |
| Fixed in | 0.0.52 |
| Weakness | CWE-749 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's analysis reads < 0.1.8. The ranges above come from the GitHub-reviewed advisory GHSA-v8vj-cv27-hjv8. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).
NVD description
langchain_experimental (aka LangChain Experimental) in LangChain before 0.1.8 allows an attacker to bypass the CVE-2023-44467 fix and execute arbitrary code via the __import__, __subclasses__, __builtins__, __globals__, __getattribute__, __bases__, __mro__, or __base__ attribute in Python code. These are not prohibited by pal_chain/base.py.
What to do
- Upgrade LangChain to
0.0.52or later. - Do not expose the component's API or UI to the internet without authentication in front of it.