What’s Vulnerable › Vulnerabilities
CVE-2026-42857: Open edX Platform: Stored CSS Injection in Email Notifications via Incomplete HTML Sanitization
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-05-11 · updated 2026-10-26
- Weakness: CWE-79
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.
Affected products
- openedx-platform: before 2026-04-24 — fixed in 2026-04-24
How to fix
Upgrade to a fixed version: openedx-platform 2026-04-24. Check the vendor advisory for mitigations.
References
- https://github.com/openedx/openedx-platform/commit/cddc25cd791bb78f76833896e4778f668861df12
- https://github.com/openedx/openedx-platform/security/advisories/GHSA-4xv3-5j4x-q8g4
- https://github.com/openedx/openedx-platform/security/advisories/GHSA-4xv3-5j4x-q8g4
Get alerted when CVE-2026-42857 or the next vulnerability affects your stack