Home

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.

PUBLISHED Reserved 2025-08-27 | Published 2025-09-12 | Updated 2025-09-12 | Assigner certcc

Problem types

CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

Product status

0.1.14
affected

References

github.com/...haingo/security/advisories/GHSA-mgcj-g55g-rf6h

github.com/tmc/langchaingo/pull/1348

cve.org (CVE-2025-9556)

nvd.nist.gov (CVE-2025-9556)

Download JSON