Vulnerabilities in pkg:maven/org.sakaiproject.conversations/sakai-conversations-impl

PACKAGE
Advisory Identifier: GHSA-w2x5-gv52-9ccv
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.sakaiproject.conversations/sakai-conversations-impl

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.sakaiproject.conversations/sakai-conversations-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

CVE-2026-54049 at a Glance

CVE Identifier CVE-2026-54049
GHSA Identifier GHSA-w2x5-gv52-9ccv
Severity HIGH
CVSS v3.1 Base Score 8.7
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Sakai conversations impl
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

org.sakaiproject.conversations:sakai-conversations-impl fixed: Latest secure release
<dependency>
    <groupId>org.sakaiproject.conversations</groupId>
    <artifactId>sakai-conversations-impl</artifactId>
    <version>Latest secure release</version>
</dependency>
org.sakaiproject.kernel:sakai-kernel-impl fixed: Latest secure release
<dependency>
    <groupId>org.sakaiproject.kernel</groupId>
    <artifactId>sakai-kernel-impl</artifactId>
    <version>Latest secure release</version>
</dependency>
org.sakaiproject.rubrics:rubrics-impl fixed: Latest secure release
<dependency>
    <groupId>org.sakaiproject.rubrics</groupId>
    <artifactId>rubrics-impl</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### 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.

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?
CVE-2026-54049 is a security vulnerability in Sakai conversations impl involving Sakai Conversations has a Stored XSS Issue under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Sakai conversations impl versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.sakaiproject.conversations:sakai-conversations-impl, org.sakaiproject.kernel:sakai-kernel-impl, org.sakaiproject.rubrics:rubrics-impl.
What version fixes CVE-2026-54049?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is sakai-conversations-impl affected?
Yes, org.sakaiproject.conversations:sakai-conversations-impl is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is sakai-kernel-impl affected?
Yes, org.sakaiproject.kernel:sakai-kernel-impl is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-54049?
CVE-2026-54049 has a CVSS v3.1 base score of 8.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-54049?
CVE-2026-54049 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Maven dependencies for CVE-2026-54049?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.sakaiproject.conversations'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}