CVE-2025-9556

CRITICALCVSS 9.8/10EPSS 0.67%

Last modified

CVE-2025-9556 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 0.67% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.8/10

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

EPSS Probability
0.67%

47.1th percentile

Probability of exploitation in the next 30 days. Learn more

References

Timeline

Published
Last Modified
Status
Deferred

Frequently Asked Questions

What is CVE-2025-9556?
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.
How severe is CVE-2025-9556?
CVE-2025-9556 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 0.67% probability of exploitation in the next 30 days.
How do I fix CVE-2025-9556?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2025-9556?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST