{"id":"CVE-2025-46059","aliases":["EUVD-2025-23002","GHSA-3g6x-vq45-v2jv"],"status":"disputed","title":"langchain-ai v0.3.51 was discovered to contain an indirect prompt injection vulnerability in the...","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-10","score":0.00839,"percentile":0.58139,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-94"],"published":"2025-07-29T00:00:00Z","modified":"2026-06-17T09:25:54Z","references":[{"url":"https://github.com/langchain-ai/langchain/issues/30833"},{"url":"https://github.com/Jr61-star/CVEs/blob/main/CVE-2025-46059.md"},{"url":"https://github.com/langchain-ai/langchain-community/issues/217#issuecomment-3144824471"},{"url":"https://python.langchain.com/docs/security/"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46059"},{"url":"https://python.langchain.com/docs/security"},{"url":"https://github.com/advisories/GHSA-3g6x-vq45-v2jv"}],"sources":{"cve":[{"id":"CVE-2025-46059","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.","status":"disputed","published":"2025-07-29T00:00:00Z","modified":"2025-08-03T23:20:43.149Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:32:36.385228Z"}],"euvd":[{"id":"EUVD-2025-23002","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.","status":"published","published":"2025-07-29T00:00:00Z","modified":"2025-08-03T23:20:43Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:32:02.018241Z"}],"ghsa":[{"id":"GHSA-3g6x-vq45-v2jv","title":"langchain-ai v0.3.51 was discovered to contain an indirect prompt injection vulnerability in the...","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.","status":"published","published":"2025-07-29T15:31:50Z","modified":"2025-08-04T00:31:35Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:03:10.193177Z"}],"nvd":[{"id":"CVE-2025-46059","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.","status":"disputed","published":"2025-07-29T15:15:35.003Z","modified":"2026-06-17T09:25:54.267Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:11:21.132141Z"}]}}
