Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. spacy-llm
  4. ›
  5. CVE-2025-25362

CVE-2025-25362: Spacy-LLM Server-Side Template Injection (SSTI) vulnerability

March 5, 2025 (updated April 2, 2025)

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.

References

  • github.com/advisories/GHSA-793v-gxfp-9q9h
  • github.com/explosion/spacy-llm
  • github.com/explosion/spacy-llm/commit/8bde0490cc1e9de9dd2e84480b7b5cd18a94d739
  • github.com/explosion/spacy-llm/issues/492
  • github.com/explosion/spacy-llm/pull/491
  • nvd.nist.gov/vuln/detail/CVE-2025-25362
  • www.hacktivesecurity.com/blog/2025/04/01/cve-2025-25362-old-vulnerabilities-new-victims-breaking-llm-prompts-with-ssti

Code Behaviors & Features

Detect and mitigate CVE-2025-25362 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.3

Fixed versions

  • 0.7.3

Solution

Upgrade to version 0.7.3 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/spacy-llm/CVE-2025-25362.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.