CVE-2026-42857: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in openedx openedx-platform
Open edX Platform enables the authoring and delivery of online learning at any scale. The HTML sanitizer clean_thread_html_body() used for discussion notification emails fails to remove <style> tags from user-generated discussion post content. This content is rendered with Django's |safe template filter in email notification templates, allowing any enrolled student to inject arbitrary CSS into email notifications sent to other users. This enables email tracking (IP address disclosure), content spoofing, and phishing attacks. This vulnerability is fixed with commit cddc25cd791bb78f76833896e4778f668861df12.
AI Analysis
Technical Summary
The Open edX platform's discussion notification emails use the clean_thread_html_body() sanitizer to process user-generated discussion posts. However, this sanitizer does not remove <style> tags, and the content is rendered with Django's |safe filter in email templates. This improper neutralization of input (CWE-79) allows any enrolled student to inject arbitrary CSS into notification emails, which can be used for email tracking (disclosing recipient IP addresses), content spoofing, and phishing. The issue affects versions prior to commit cddc25cd791bb78f76833896e4778f668861df12 and has been fixed in that commit.
Potential Impact
The vulnerability allows attackers with enrolled student privileges to inject arbitrary CSS into email notifications sent to other users. This can lead to privacy breaches through email tracking (IP address disclosure), as well as enable content spoofing and phishing attacks via manipulated email content. There is no indication of direct code execution or system compromise. The CVSS 3.1 base score is 4.6, reflecting a medium severity impact with limited confidentiality and integrity impact and no availability impact.
Mitigation Recommendations
A fix for this vulnerability is available and has been implemented in commit cddc25cd791bb78f76833896e4778f668861df12. Users of the Open edX platform should update to this commit or a later version that includes the fix. There is no vendor advisory explicitly provided, but the commit reference confirms the availability of an official fix. No additional mitigation steps are indicated.
CVE-2026-42857: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in openedx openedx-platform
Description
Open edX Platform enables the authoring and delivery of online learning at any scale. The HTML sanitizer clean_thread_html_body() used for discussion notification emails fails to remove <style> tags from user-generated discussion post content. This content is rendered with Django's |safe template filter in email notification templates, allowing any enrolled student to inject arbitrary CSS into email notifications sent to other users. This enables email tracking (IP address disclosure), content spoofing, and phishing attacks. This vulnerability is fixed with commit cddc25cd791bb78f76833896e4778f668861df12.
CVSS v3.1
Score 4.6medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Open edX platform's discussion notification emails use the clean_thread_html_body() sanitizer to process user-generated discussion posts. However, this sanitizer does not remove <style> tags, and the content is rendered with Django's |safe filter in email templates. This improper neutralization of input (CWE-79) allows any enrolled student to inject arbitrary CSS into notification emails, which can be used for email tracking (disclosing recipient IP addresses), content spoofing, and phishing. The issue affects versions prior to commit cddc25cd791bb78f76833896e4778f668861df12 and has been fixed in that commit.
Potential Impact
The vulnerability allows attackers with enrolled student privileges to inject arbitrary CSS into email notifications sent to other users. This can lead to privacy breaches through email tracking (IP address disclosure), as well as enable content spoofing and phishing attacks via manipulated email content. There is no indication of direct code execution or system compromise. The CVSS 3.1 base score is 4.6, reflecting a medium severity impact with limited confidentiality and integrity impact and no availability impact.
Mitigation Recommendations
A fix for this vulnerability is available and has been implemented in commit cddc25cd791bb78f76833896e4778f668861df12. Users of the Open edX platform should update to this commit or a later version that includes the fix. There is no vendor advisory explicitly provided, but the commit reference confirms the availability of an official fix. No additional mitigation steps are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-30T16:44:48.379Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a021aa3cbff5d8610430389
Added to database: 05/11/2026, 18:06:27 UTC
Last enriched: 05/19/2026, 09:37:15 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 70
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.
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.