CVE-2025-25362 Spacy-LLM Server-Side Template Injection (SSTI) vulnerability
Attackers can execute arbitrary code by injecting payloads into the template field of the Spacy-LLM library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-25362?
CVE-2025-25362 is a critical code injection vulnerability in n/a, published on 5 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A Server-Side Template Injection (SSTI) vulnerability in Spacy-LLM v0.7.2 allows attackers to execute arbitrary code via injecting a crafted payload into the template field.
Weakness: CWE-94
Which versions are affected by CVE-2025-25362?
3 open source packages ship an affected version, including spacy-llm.
| Package | Affected | Fixed in |
|---|---|---|
spacy-llm PyPI | All versions | 0.7.3 |
spacy-llm PyPI | All versions | 0.7.3 |
spacy-llm PyPI | All versions | 0.7.3 |
How do I fix CVE-2025-25362?
Upgrade spacy-llm to 0.7.3 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-25362 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-25362 exists.
Sources
Also known as GHSA-793v-gxfp-9q9h, PYSEC-2026-1934.