CVE-2025-6518: pyspur · Template Injection
Affects pyspurSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 26 Oct 2026, 09:08 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 23 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIpyspurpkg:pypi/pyspurOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Immediate upgrade: Organizations should update pyspur to a version beyond 0.1.18 once a patched release is available from PySpur-Dev. 2. Input validation: Implement strict input validation and sanitization on all user-supplied data that is passed to template rendering functions, specifically targeting special template syntax characters or sequences. 3. Template sandboxing: Configure Jinja2 environment to use sandboxed execution modes or restrict template capabilities to minimize potential damage from malicious templates. 4. Network controls: Restrict access to services exposing pyspur functionality to trusted networks or authenticated users where possible, even though the vulnerability does not require authentication. 5. Monitoring and detection: Deploy monitoring for unusual template rendering errors, unexpected code execution patterns, or anomalous user_message inputs indicative of exploitation attempts. 6. Incident response readiness: Prepare to respond to potential exploitation by having logs and forensic data collection enabled on systems running pyspur. 7. Dependency management: Review and audit all dependencies related to pyspur and Jinja2 to ensure no other related vulnerabilities exist. 8. Security awareness: Educate developers and system administrators about the risks of template injection and secure coding practices around template engines.
Description
A vulnerability was found in PySpur-Dev pyspur up to 0.1.18. It has been classified as critical. Affected is the function SingleLLMCallNode of the file backend/pyspur/nodes/llm/single_llm_call.py of the component Jinja2 Template Handler. The manipulation of the argument user_message leads to improper neutralization of special elements used in a template engine. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.