All reports
High

langchain-core: Langchain indirect propmpt injection

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-46059

Probability of exploitation in the next 30 days: 0.84%

FIRST EPSS · 2026-11-22

Description

langchain-ai v0.3.51 was discovered to contain an indirect prompt injection vulnerability in the GmailToolkit component. This vulnerability allows attackers to execute arbitrary code and compromise the application via a crafted email message. NOTE: this is disputed by the Supplier because the code-execution issue was introduced by user-written code that does not adhere to the LangChain security practices.

A prompt injection vulnerability was found in the Langchain AI project. Users who leverage the GmailToolkit component are at risk of an attacker creating a malicious email. This vulnerability could allow code execution in the context of the running Python application.