The Markdown syntax is vulnerable to XSS through HTML. In particular, using Markdown syntax, it's possible for any user to embed Javascript code that will then be executed on the browser of any other user visiting either the document or the comment that contains it. In the instance that this code is executed by a user with admins or programming rights, this issue compromises the confidentiality, integrity and availability of the whole XWiki installation.
To reproduce, on an instance where the CommonMark Markdown Syntax 1.2 extension is installed, log in as a user without script rights. Edit a document and set its syntax to Markdown. Then , add the content <script>alert("XSS")</script>
and refresh the page. If an alert appears containing "XSS", then the instance is vulnerable.
This has been patched in version 8.9 of the CommonMark Markdown Syntax 1.2 extension.
We're not aware of any workaround except upgrading.
{ "nvd_published_at": "2025-04-30T19:15:55Z", "cwe_ids": [ "CWE-79" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2025-04-30T16:53:27Z" }