Skip to content
CriticalVulnerabilityLLM-specific

CVE-2025-9556: Langchaingo server side template injection through prompt parsing

Identifier
CVE-2025-9556
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%

Summary

CVE-2025-9556 affects langchaingo, which supports jinja2 syntax in prompt parsing via the gonja library v1.5.3. Gonja's include and extends directives can read files, creating a server side template injection that lets an attacker insert a statement into a prompt to read the "etc/passwd" file.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.