CVE-2026-71239 DjangoCRM - Server-Side Template Injection in Mass Mail Message Rendering
Attackers can execute arbitrary code via unsanitized user input in DjangoCRM's mass mail template rendering.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-71239?
CVE-2026-71239 is a high-severity code injection vulnerability in DjangoCRM django-crm, published on 5 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-1336
Which versions are affected by CVE-2026-71239?
How do I fix CVE-2026-71239?
No fix has been published for CVE-2026-71239 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-71239 being exploited?
There is no known exploitation of CVE-2026-71239 in the wild and no public exploit code.
Sources
Also known as GHSA-qwf5-72hq-pg7x.