Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.contrib.markdown/syntax-markdown-commonmark12
  4. ›
  5. CVE-2025-46558

CVE-2025-46558: org.xwiki.contrib.markdown:syntax-markdown-commonmark12 vulnerable to XSS via Markdown content

April 30, 2025 (updated May 1, 2025)

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.

References

  • github.com/advisories/GHSA-8g2j-rhfh-hq3r
  • github.com/xwiki-contrib/syntax-markdown
  • github.com/xwiki-contrib/syntax-markdown/commit/d136472d6e8a47981a0ede420a9096f88ffa5035
  • github.com/xwiki-contrib/syntax-markdown/security/advisories/GHSA-8g2j-rhfh-hq3r
  • jira.xwiki.org/browse/MARKDOWN-80
  • nvd.nist.gov/vuln/detail/CVE-2025-46558

Code Behaviors & Features

Detect and mitigate CVE-2025-46558 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 8.2 before 8.9

Fixed versions

  • 8.9

Solution

Upgrade to version 8.9 or above.

Impact 9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.xwiki.contrib.markdown/syntax-markdown-commonmark12/CVE-2025-46558.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:13 +0000.