8.1high
DjangoCRM - Server-Side Template Injection in Mass Mail Message Rendering
- Severity
- 8.1high CVSS:3.1 by TuranSec
- Exploit likelihood
- 0.22% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- TuranSec
Description
DjangoCRM's massmail module renders user-controlled EmlMessage fields (subject, content) through Django's Template constructor with no sanitization, in at least three locations: message_previews.py builds an f-string embedding message.subject/message.content directly into a Template call; email_creators.py passes eml_message.subject directly as a template string to Template; and helpers.py contains the same f-string interpolation pattern.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| DjangoCRM django-crm | 0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
DjangoCRM's massmail module renders user-controlled EmlMessage fields (subject, content) through Django's Template constructor with no sanitization, in at least three locations: message_previews.py builds an f-string embedding message.subject/message.content directly into a Template call; email_creators.py passes eml_message.subject directly as a template string to Template; and helpers.py contains the same f-string interpolation pattern.
NVD (es)
El módulo de correo masivo de DjangoCRM renderiza campos EmlMessage controlados por el usuario (asunto, contenido) a través del constructor Template() de Django sin sanitización, en al menos tres ubicaciones: message_previews.py construye una f-string que incrusta message.subject/message.content directamente en una llamada a Template(); email_creators.py pasa eml_message.subject directamente como una cadena de plantilla a Template(); y helpers.py contiene el mismo patrón de interpolación de f-string. Un usuario autenticado con derechos de edición de mensajes de correo masivo puede inyectar sintaxis de plantilla de Django ({{ }} / {% %}) que se ejecuta en tiempo de renderizado, permitiendo la divulgación de datos de otros usuarios y hashes de contraseñas a través de variables de contexto de solicitud, falsificación de tokens CSRF, y la inclusión de plantillas registradas arbitrarias.
References
| https://github.com/DjangoCRM/django-crm | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-71239 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-71239 changed 2026-10-24 | Public domain |