CVE-2025-9556

critical

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.

References

https://kb.cert.org/vuls/id/949137

https://www.kb.cert.org/vuls/id/949137

https://github.com/tmc/langchaingo/security/advisories/GHSA-mgcj-g55g-rf6h

https://github.com/tmc/langchaingo/pull/1348

Details

Source: Mitre, NVD

Published: 2025-09-12

Updated: 2026-04-15

Risk Information

CVSS v2

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Severity: Critical

CVSS v3

Base Score: 9.8

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: Critical

EPSS

EPSS: 0.00055