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.
Published: 2025-07-29
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-23002 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.
History

Sun, 03 Aug 2025 23:30:00 +0000

Type Values Removed Values Added
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. 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.
References

Wed, 30 Jul 2025 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Langchain
Langchain langchain
Langchain-ai
Langchain-ai langchain
Vendors & Products Langchain
Langchain langchain
Langchain-ai
Langchain-ai langchain

Wed, 30 Jul 2025 00:15:00 +0000

Type Values Removed Values Added
Title langchain-core: Langchain indirect propmpt injection
References
Metrics threat_severity

None

threat_severity

Important


Tue, 29 Jul 2025 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 29 Jul 2025 14:45:00 +0000

Type Values Removed Values Added
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.
References

Subscriptions

Langchain Langchain
Langchain-ai Langchain
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-08-03T23:20:43.149Z

Reserved: 2025-04-22T00:00:00.000Z

Link: CVE-2025-46059

cve-icon Vulnrichment

Updated: 2025-07-29T14:55:47.444Z

cve-icon NVD

Status : Deferred

Published: 2025-07-29T15:15:35.003

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-46059

cve-icon Redhat

Severity : Important

Publid Date: 2025-07-29T00:00:00Z

Links: CVE-2025-46059 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2025-07-30T15:04:14Z

Weaknesses