langchain-ai langchain vulnerabilities (CVE)

CVE records published for langchain-ai langchain, newest first. Follow to get an email when a new one appears.

8 results
5.3Medium
CVE-2026-40087

LangChain has incomplete f-string validation in prompt templates

langchain-ai langchain

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 templates and formatte…

7.5High
CVE-2026-34070

LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions

langchain-ai langchain; Red Hat Red Hat Ansible Automation Platform 2.5; Red Hat Red Hat OpenShift AI 3.3; Red Hat OpenShift Lightspeed

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…

1.5%EPSS
8.7High
CVE-2024-58340

LangChain <= 0.3.1 MRKLOutputParser ReDoS

LangChain AI LangChain

LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) vulnerability in the MRKLOutputParser.parse() method (libs/langchain/langchain/agents/mrkl/output_parser.py). The parser applies a backtracking-prone regular e…