CVE-2025-46059 Code injection in n/a
Attackers can execute arbitrary code via crafted emails in the GmailToolkit component, though the vendor disputes this as user error.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-46059?
CVE-2025-46059 is a critical code injection vulnerability in n/a, published on 29 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2025-46059?
How do I fix CVE-2025-46059?
No fix has been published for CVE-2025-46059 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-46059 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-46059 exists.
Sources
Also known as GHSA-3g6x-vq45-v2jv.