CVE-2025-9556
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-12

Last updated on: 2025-11-03

Assigner: CERT/CC

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-12
Last Modified
2025-11-03
Generated
2026-06-16
AI Q&A
2025-09-12
EPSS Evaluated
2026-06-15
NVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
gonja gonja 1.5.3
langchaingo langchaingo *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in Langchaingo, which uses jinja2 syntax parsed by the gonja library v1.5.3. Gonja's support for include and extends syntax allows reading files, leading to a server side template injection vulnerability. An attacker can exploit this by inserting a statement into a prompt to read sensitive files like "etc/passwd".

Impact Analysis

The vulnerability can allow an attacker to execute arbitrary template code on the server, potentially reading sensitive files such as "etc/passwd". This can lead to full compromise of confidentiality, integrity, and availability of the affected system, as indicated by the high CVSS score (9.8).

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-9556. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart