Property
Languagepython
Severitymedium
CWECWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component (‘Injection’)
OWASPA03:2021 - Injection
Confidence LevelMedium
Impact LevelMedium
Likelihood LevelMedium

Description#

User input from HTTP requests is being included directly in the ‘html_message’ parameter of Django’s send_mail() function without proper sanitization. This allows attackers to inject malicious HTML or JavaScript into emails sent by your application.

Impact#

If exploited, attackers could send emails containing harmful scripts that execute when recipients open the email, leading to phishing attacks, data theft, or compromise of user accounts. This can damage user trust and put your organization at risk of data breaches or regulatory violations.