Skip to main content
VulnerabilityPublished

CVE-2025-6518: pyspur · Template Injection

Affects pyspurSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 26 Oct 2026, 09:08 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPIpyspurpkg:pypi/pyspurOther threatsAffected
  • =0.1.0
  • =0.1.1
  • =0.1.2
  • =0.1.3
  • =0.1.4
  • =0.1.5
  • =0.1.6
  • =0.1.7
  • =0.1.8
  • =0.1.9
  • =0.1.10
  • =0.1.11
  • =0.1.12
  • =0.1.13
  • =0.1.14
  • =0.1.15
  • =0.1.16
  • =0.1.17
  • =0.1.18
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.

References

Community reviews

Loading reviews…