CVE-2025-9556

CVE-2025-9556

Critical · published September 12, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
51.3
In the wild
Unconfirmed
What it is

🚨 A crafty use of jinja2 syntax can turn into a critical server-side template injection in Langchaingo! 🔥 Think of it as a recipe book where anyone can add secret ingredients without checking — if a rogue chef sneaks in a recipe to read the kitchen's confidential inventory, there’s chaos in the kitchen! This vulnerability allows an attacker to insert malicious statements into prompts, giving them the ability to read sensitive files like '/etc/passwd'. If exploited, this could lead to unauthorized access to user accounts and system configurations, leaving your whole setup exposed!

Put simply

Think of it as a recipe book where anyone can add secret ingredients without checking — if a rogue chef sneaks in a recipe to read the kitchen's confidential inventory, there’s chaos in the kitchen! The issue arises from Langchaingo’s support for jinja2 syntax, which, combined with gonja library v1.5.3, allows attackers to include and extend templates, facilitating file reads directly from the server.

What to do

This vulnerability allows an attacker to insert malicious statements into prompts, giving them the ability to read sensitive files like '/etc/passwd'. If exploited, this could lead to unauthorized access to user accounts and system configurations, leaving your whole setup exposed! Update Langchaingo to the latest version to eliminate this vulnerability. Review any usage of jinja2 syntax in your prompts and restrict file reads where possible to minimize impact. Regularly audit your template handling practices to ensure safety! You've got this! With these fixes in place, you’ll be on your way to keeping your system secure! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00668 · 51.3th percentile
Published
2025-09-12T18:15Z
References (3)
EPSS history
Timeline
  • 12 SEP 13:45Z
    CVE-2025-9556
    cvelistv5