Vulnerability in Langchain-ai Langchain

CVE-2026-40087

LangChain is a framework for building agents and LLM-powered applications. Prior to 0.3.84 and 1.2.28, LangChain's f-string prompt-template validation was incomplete in two respects. First, some prompt template classes accepted f-string te…

EPSS: 0.001 (17.4th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-40087?
CVE-2026-40087 is a medium-severity vulnerability in Langchain-ai Langchain, classified under Improper Neutralization of Special Elements Used in a Template Engine. CVSS score: 5.3/10. Published 2026-04-09.
How severe is CVE-2026-40087?
Medium severity. CVSS v3 base score is 5.3 out of 10.