org.xwiki.contrib.markdown:syntax-markdown-commonmark12 vulnerable to XSS via Markdown content
Impact
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.
Patches
This has been patched in version 8.9 of the CommonMark Markdown Syntax 1.2 extension.
Workarounds
We're not aware of any workaround except upgrading.
References
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.xwiki.contrib.markdown:syntax-markdown-commonmark12 | >= 8.2, < 8.9 | 8.9 |
Verweise
- https://github.com/xwiki-contrib/syntax-markdown/security/advisories/GHSA-8g2j-rhfh-hq3r
- https://nvd.nist.gov/vuln/detail/CVE-2025-46558
- https://github.com/xwiki-contrib/syntax-markdown/commit/d136472d6e8a47981a0ede420a9096f88ffa5035
- https://github.com/xwiki-contrib/syntax-markdown
- https://jira.xwiki.org/browse/MARKDOWN-80
- CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H- Schwäche (CWE)
CWE-79- Plattform
- Java / Kotlin (Maven)
- Paket
org.xwiki.contrib.markdown:syntax-markdown-commonmark12- Veröffentlicht
- 30.04.2025
- Aktualisiert
- 11.10.2026 12:21
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-8g2j-rhfh-hq3r - CC BY 4.0
Schwachstellenhistorie: org.xwiki.contrib.markdown:syntax-markdown-commonmark12
Alle veröffentlichten Schwachstellen dieses Pakets (Java / Kotlin (Maven)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
Dies ist die einzige bekannte Schwachstelle dieses Pakets.
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.