CVE-2025-9556

CVE-2025-9556

Published Sep 12, 2025 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3.
Gonja supports include and extends syntax to read files, which leads to a server side template injection vulnerability within langchaingo, allowing an attacker to insert a statement into a prompt to read the "etc/passwd" file.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-29045 Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3. Gonja supports include and extends syntax to read files, which leads to a server side template injection vulnerability within langchaingo, allowing an attacker to insert a statement into a prompt to read the "etc/passwd" file.
History
Type Values Removed Values Added
First Time appeared Langchain
Langchain langchain
Vendors & Products Langchain
Langchain langchain
Type Values Removed Values Added
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': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Langchaingo supports the use of jinja2 syntax when parsing prompts, which is in turn parsed using the gonja library v1.5.3. Gonja supports include and extends syntax to read files, which leads to a server side template injection vulnerability within langchaingo, allowing an attacker to insert a statement into a prompt to read the "etc/passwd" file.
Title CVE-2025-9556
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
certcc
Published
Updated
Nov 3, 2025, 6:14 PM
Reserved
Aug 27, 2025, 6:10 PM
Status
Deferred
Published
Sep 12, 2025, 2:15 PM
Modified
Oct 19, 2026, 5:10 PM