Vulnerabilities in pkg:maven/org.sakaiproject.kernel/sakai-kernel-impl
PACKAGECVE-2026-54049 is a HIGH (CVSS 8.7) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Sakai conversations impl libraries in the Maven ecosystem. The issue involves sakai conversations has a stored xss issue. Remediation is available in the latest vendor maintenance releases.
pkg:maven/org.sakaiproject.kernel/sakai-kernel-impl
Vulnerability advisories affecting package pkg:maven/org.sakaiproject.kernel/sakai-kernel-impl. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w2x5-gv52-9ccv | CVE-2026-54049 | HIGH | Sakai Conversations has a Stored XSS Issue |
| GHSA-gr7h-xw4f-wh86 | CVE-2025-62710 | MODERATE | Sakai kernel-impl: predictable PRNG used to generate server‑side encryption key in EncryptionUtilityServiceImpl |
| GHSA-cx95-q6gx-w4qp | CVE-2024-47876 | HIGH | SAK-50571 Sakai Kernel users created with type roleview can login as a normal user |
CVE-2026-54049 at a Glance
Security Impact
CVSS: 8.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2026-54049
To remediate this vulnerability, upgrade all affected Sakai conversations impl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.sakaiproject.conversations</groupId>
<artifactId>sakai-conversations-impl</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.sakaiproject.kernel</groupId>
<artifactId>sakai-kernel-impl</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.sakaiproject.rubrics</groupId>
<artifactId>rubrics-impl</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.sakaiproject.conversations
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-54049, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.sakaiproject.conversations
Analyze the terminal output to locate any version of Sakai conversations impl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.sakaiproject.conversations command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Sakai conversations impl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-54049 Affected Sakai conversations impl Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.sakaiproject.conversations:sakai-conversations-impl
|
Maven |
≥ 23.0
≤ 23.3
|
|
|
org.sakaiproject.kernel:sakai-kernel-impl
|
Maven |
≥ 23.0
≤ 23.3
|
|
|
org.sakaiproject.rubrics:rubrics-impl
|
Maven |
≥ 23.0
≤ 23.3
|
|
References
Frequently Asked Questions
What is CVE-2026-54049?
Which Sakai conversations impl versions are affected?
What version fixes CVE-2026-54049?
Is sakai-conversations-impl affected?
Is sakai-kernel-impl affected?
What is the CVSS score of CVE-2026-54049?
What CWE is associated with CVE-2026-54049?
How can I check Maven dependencies for CVE-2026-54049?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w2x5-gv52-9ccv",
"modified" : "2026-08-24T19:37:53Z",
"published" : "2026-08-24T19:37:53Z",
"aliases" : [ "CVE-2026-54049" ],
"summary" : "Sakai Conversations has a Stored XSS Issue",
"details" : "### Summary\n\nThe 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.\n\n\n### Description\n\nThe 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.\n\nThe same issue affects post replies via `POST /api/sites/{siteId}/topics/{topicId}/posts` and comments stored in `conv_comments`.\n\nOn the frontend, `SakaiTopic.js`, `SakaiPost.js`, and `SakaiComment.js` all render the `message` field using LitElement's `unsafeHTML()` directive:\n\n- `SakaiPost.js` lines 429, 432: `${unsafeHTML(this.post.message)}`\n- `SakaiTopic.js` line 679: `${unsafeHTML(this.topic.message)}`\n- `SakaiComment.js` line 148: `${unsafeHTML(this.comment.message)}`\n\nUnlike 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.\n\n### Proof of Concept\n\n**Setup:** Admin/instructor session on a site with the Conversations tool enabled (siteId `BELP_275K_7418`).\n\n**Step 1 - Inject XSS payload in topic:**\n\n```\nPOST /api/sites/BELP_275K_7418/topics HTTP/1.1\nHost: localhost:9107\nCookie: SAKAIID=<authenticated-session>\nContent-Type: application/json\n\n{\"title\":\"XSS Test Topic\",\"message\":\"<img src=x onerror=alert(1)>\",\"type\":\"QUESTION\",\"visibility\":\"SITE\",\"draft\":false}\n```\n\nResponse: HTTP 200, `\"message\":\"<img src=x onerror=alert(1)>\"` - raw HTML stored.\n\n**Step 2 - Verify stored in database:**\n\n```sql\nSELECT TOPIC_ID, TITLE, MESSAGE FROM conv_topics\nWHERE TOPIC_ID='e4c599c2-bd32-4364-9cbd-a5c9c102edfb';\n-- Result: MESSAGE = <img src=x onerror=alert(1)>\n```\n\n**Step 3 - Inject XSS payload in post reply:**\n\n```\nPOST /api/sites/BELP_275K_7418/topics/e4c599c2-bd32-4364-9cbd-a5c9c102edfb/posts HTTP/1.1\nHost: localhost:9107\nCookie: SAKAIID=<authenticated-session>\nContent-Type: application/json\n\n{\"message\":\"<script>alert(document.cookie)<\\/script>\",\"siteId\":\"BELP_275K_7418\"}\n```\n\nResponse: HTTP 200, `\"message\":\"<script>alert(document.cookie)</script>\"` - raw script stored.\n\n**Step 4 - Verify in database:**\n\n```sql\nSELECT POST_ID, MESSAGE FROM conv_posts\nWHERE POST_ID='e3cf7aed-c630-448a-89bb-27a8baacd269';\n-- Result: MESSAGE = <script>alert(document.cookie)</script>\n```\n\nWhen 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.\n\n### Impact\n\nAn attacker with any site membership (student role or higher) can:\n- Perform actions on behalf of victims\n- Exfiltrate gradebook data and course content\n- In a university context with hundreds of students per course, a single malicious post can compromise all enrolled students simultaneously\n\n### Status / timeline:\n- 2026-06-02: Fix committed to master (`2696b4b48cbef2e81512f52f84f7477adff78b27`)\n- Release pending.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.sakaiproject.conversations:sakai-conversations-impl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "23.0"
}, {
"last_affected" : "23.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.sakaiproject.kernel:sakai-kernel-impl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "23.0"
}, {
"last_affected" : "23.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.sakaiproject.rubrics:rubrics-impl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "23.0"
}, {
"last_affected" : "23.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sakaiproject/sakai/security/advisories/GHSA-w2x5-gv52-9ccv"
}, {
"type" : "WEB",
"url" : "https://github.com/sakaiproject/sakai/commit/2696b4b48cbef2e81512f52f84f7477adff78b27"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sakaiproject/sakai"
}, {
"type" : "WEB",
"url" : "https://github.com/sakaiproject/sakai/releases/tag/23.5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-24T19:37:53Z",
"nvd_published_at" : null
}
}