# CVE-2025-46059: langchain-ai v0.3.51 was discovered to contain an indirect prompt injection vulnerability in the GmailToolkit component.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.39%, higher than 72% of CVEs (2026-11-30)
- Published: 2025-07-29T00:00:00.000Z
- Modified: 2026-06-17T09:25:54.267Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/langchain-ai/langchain/issues/30833>
- <https://github.com/Jr61-star/CVEs/blob/main/CVE-2025-46059.md>
- <https://github.com/langchain-ai/langchain-community/issues/217#issuecomment-3144824471>
- <https://python.langchain.com/docs/security/>

## Sources

- CVE List: [CVE-2025-46059](https://www.cve.org/CVERecord?id=CVE-2025-46059), CVE Terms of Use, modified 2025-08-03
- NVD: [CVE-2025-46059](https://nvd.nist.gov/vuln/detail/CVE-2025-46059), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46059 · Whole record: https://cve.day/CVE-2025-46059.json · Rebuilt by cve.day 2026-11-25T22:59:01.844Z
