CVE-2026-71239: CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine in DjangoCRM django-crm
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.
AI Analysis
Technical Summary
DjangoCRM's django-crm massmail module improperly handles user-controlled EmlMessage fields (subject, content) by rendering them through Django's Template constructor without sanitization in at least three locations: message_previews.py, email_creators.py, and helpers.py. This improper neutralization of special elements (CWE-1336) can lead to injection of malicious template code, potentially compromising confidentiality and integrity of the system. The vulnerability is tracked as CVE-2026-71239 with a CVSS 3.1 score of 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N). No patch or remediation guidance is currently provided by the vendor or advisory sources.
Potential Impact
The vulnerability allows an attacker with at least low privileges (PR:L) and no user interaction (UI:N) to inject malicious template code via email message subject or content fields. Successful exploitation can lead to high confidentiality and integrity impact, such as unauthorized data disclosure or modification within the affected DjangoCRM system. Availability impact is not indicated. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using untrusted input in template rendering within the massmail module. Consider applying manual input sanitization or disabling the affected functionality if feasible.
CVE-2026-71239: CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine in DjangoCRM django-crm
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.
CVSS v3.1
Score 8.1high
Affected software
DjangoCRM
django-crm
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
DjangoCRM's django-crm massmail module improperly handles user-controlled EmlMessage fields (subject, content) by rendering them through Django's Template constructor without sanitization in at least three locations: message_previews.py, email_creators.py, and helpers.py. This improper neutralization of special elements (CWE-1336) can lead to injection of malicious template code, potentially compromising confidentiality and integrity of the system. The vulnerability is tracked as CVE-2026-71239 with a CVSS 3.1 score of 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N). No patch or remediation guidance is currently provided by the vendor or advisory sources.
Potential Impact
The vulnerability allows an attacker with at least low privileges (PR:L) and no user interaction (UI:N) to inject malicious template code via email message subject or content fields. Successful exploitation can lead to high confidentiality and integrity impact, such as unauthorized data disclosure or modification within the affected DjangoCRM system. Availability impact is not indicated. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using untrusted input in template rendering within the massmail module. Consider applying manual input sanitization or disabling the affected functionality if feasible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T10:53:53.175Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a731a81bf8831d539c95ca2
Added to database: 08/05/2026, 11:12:01 UTC
Last enriched: 08/12/2026, 14:28:14 UTC
Last updated: 09/19/2026, 22:01:37 UTC
Views: 52
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.