CVE 4.6 MEDIUM

Open edX Platform: Stored CSS Injection in Email Notifications via Incomplete HTML Sanitization_CVE-2026-42857

4.6 / 10
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

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.

Basic Information

ID CVE-2026-42857
Source GitHub_M
Published May 11, 2026 at 17:32

Affected Product

Vendor openedx
Product openedx-platform
Version < cddc25cd791bb78f76833896e4778f668861df12
Affected Versions openedx openedx-platform < cddc25cd791bb78f76833896e4778f668861df12
openedx openedx-platform >= sumac, < ulmo

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.