CVE-2025-9556 Details
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.
A server-side template injection vulnerability has been identified in Langchaingo, specifically in versions that support Jinja2 syntax. This vulnerability arises from the use of the Gonja library, which allows templates to include and extend other files. An attacker can exploit this by injecting a statement into a prompt that reads the '/etc/passwd' file, leading to unauthorized access to sensitive file information.
Langchaingo has introduced a patch that changes the prompt package to use a more secure default rendering context for Jinja2-compatible syntax. Users should update to the latest version of Langchaingo to apply this security enhancement.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 12, 2025CISA-ADP
Assessed Sep 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.kb.cert.org/vuls/id/949137 | CVE | |
| https://github.com/tmc/langchaingo/pull/1348 | [email protected] | Issue TrackingVendor |
| https://github.com/tmc/langchaingo/security/advisories/GHSA-mgcj-g55g-rf6h | [email protected] | AdvisoryBroken LinkVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| tmc langchaingo | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Sep 12, 2025 | New CVE Received | [email protected] |
| Sep 12, 2025 | CVE Modified | CISA-ADP |
Volerion