CVE-2025-9556: Langchaingo server-side template injection vulnerability
Langchaingo
Langchaingo incorrectly handles prompt templates through the gonja library, enabling server-side template injection. Attackers can leverage this vulnerability to read sensitive local files via specially crafted prompt statements.
disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why
- CVSS
- 9.8
- EPSS
- 0.01 · top 47% · 2026-11-13
- fix status
- Fix status unknown
- first report
- 12 Sep 2025
- last update
- 12 Sep 2025
- CVE ids
Timeline · 1
Sources · 1
Advisories and databases
- 2025-09-12CVE-2025-9556: Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3.NVD · nvd.nist.gov/vuln/detail/CVE-2025-9556
Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.
Classification
- lane
- Patch now
- AI role
- Attack on AI
- categories
- Infrastructure vulnerability
- severity
- 2 · Disclosed vulnerability
- fix status
- Fix status unknown
- targets
- Framework / tooling
- owasp llm top 10
- LLM03:2025 Supply Chain
- mitre atlas
- no technique for these categories
- tags
- sstilangchaingo
- dates
- happened 12 Sep 2025 · first reported 12 Sep 2025
- origin
- NVDVulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
- record
- confidence 0.95 · created 2026-10-18 10:04Z · updated 2026-10-18 10:04Z
Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned
Copy a brief
This record as a short Markdown brief, for a ticket, a chat or a coding agent.
the brief as text
# CVE-2025-9556: Langchaingo server-side template injection vulnerability https://gcdradar.vercel.app/incidents/cve-2025-9556-langchaingo-server-side-template-injection-vul · AIR-2025-0480 · closed 2025-09-12 - Lane: Patch now - Severity: 2 (Disclosed vulnerability) - Fix status: Fix status unknown - First reported: 2025-09-12 - AI role: Attack on AI - Products: Langchaingo - CVE ids: CVE-2025-9556 - CVSS: 9.8 ## Summary Langchaingo incorrectly handles prompt templates through the gonja library, enabling server-side template injection. Attackers can leverage this vulnerability to read sensitive local files via specially crafted prompt statements. ## What to do No action recorded; read the sources below and the vendor's advisory. ## Latest updates - 2025-09-12: CVE-2025-9556: Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3. (https://nvd.nist.gov/vuln/detail/CVE-2025-9556) ## Sources - 2025-09-12 NVD: CVE-2025-9556: Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3. https://nvd.nist.gov/vuln/detail/CVE-2025-9556 Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.
Related
- closedFlowise Flowise vulnerable to arbitrary file exposure
Patch now · Disclosed · since 10 Oct 2025
AI - closed9.9Flowise CVE-2025-61913: Flowise File Path Traversal Vulnerability
Patch now · Disclosed · since 8 Oct 2025 · updated 9 Oct 2025 · CVE-2025-61913
AI - closed6.5vLLM CVE-2025-61620: vLLM resource exhaustion via malicious Jinja template
Patch now · Disclosed · since 7 Oct 2025 · CVE-2025-61620
AI - closed7.5vLLM CVE-2025-59425: vLLM vulnerable to timing attack at bearer auth
Patch now · Disclosed · since 7 Oct 2025 · CVE-2025-59425
AI - closed7.1vLLM CVE-2025-6242: vLLM vulnerable to SSRF through MediaConnector
Patch now · Disclosed · since 7 Oct 2025 · CVE-2025-6242
AI - closed7.5LangChain family CVE-2025-6985: XML External Entity vulnerability in langchain-text-splitters
Patch now · Disclosed · since 6 Oct 2025 · CVE-2025-6985
AI