CVE-2025-6518
Python vulnerability analysis and mitigation

Overview

A critical vulnerability was discovered in PySpur-Dev pyspur versions up to 0.1.18, identified as CVE-2025-6518. The vulnerability affects the SingleLLMCallNode function in the file backend/pyspur/nodes/llm/singlellmcall.py component of the Jinja2 Template Handler. The issue was disclosed on June 23, 2025, and involves improper neutralization of special elements used in a template engine (NVD, Wiz).

Technical details

The vulnerability stems from unsafe usage of Template in the SingleLLMCallNode class's run method. Specifically, the user_message parameter in the config object can be controlled by users, allowing for template injection. The vulnerability has been assigned CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) and CWE-791 (Incomplete Filtering of Special Elements). The CVSS v3.1 base score is 6.3 (Medium), with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (VulDB).

Impact

The vulnerability allows remote attackers to execute arbitrary code on affected systems through template injection. This can lead to complete system compromise, affecting the confidentiality, integrity, and availability of the affected system. The attack can be launched remotely, and the exploitation is considered relatively easy due to the availability of public proof-of-concept code (GitHub Issue).

Mitigation and workarounds

At the time of disclosure, there is no official patch or mitigation strategy provided by the vendor. It is recommended to replace the affected software with an alternative product until a security fix is available (VulDB).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management