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

Published Apr 30, 2025
·
Updated

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 https://jira.xwiki.org/browse/MARKDOWN-80 https://github.com/xwiki-contrib/syntax-markdown/commit/d136472d6e8a47981a0ede420a9096f88ffa5035

Other sources

XWiki Contrib's Syntax Markdown allows importing Markdown content into wiki pages and creating wiki content in Markdown. In versions starting from 8.2 to before 8.9, the Markdown syntax is vulnerable to cross-site scripting (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. This issue has been patched in version 8.9.

MITRE

Affected Software

2 affected componentsFixes available
maven/org.xwiki.contrib.markdown:syntax-markdown-commonmark12>=8.2<8.9
8.9
XWiki xwiki>=8.2<8.9

Event History

Apr 30, 2025
Advisory Published
via GitHub·04:53 PM
CVE Published
via MITRE·06:27 PM
Data Sourced
via MITRE·06:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-46558?

CVE-2025-46558 has a high severity due to its potential for XSS attacks allowing execution of malicious scripts in users' browsers.

2

How do I fix CVE-2025-46558?

To fix CVE-2025-46558, update to version 8.9 of the org.xwiki.contrib.markdown:syntax-markdown-commonmark12 package.

3

What is the vulnerability type of CVE-2025-46558?

CVE-2025-46558 is classified as a cross-site scripting (XSS) vulnerability affecting Markdown syntax.

4

Which software is affected by CVE-2025-46558?

CVE-2025-46558 affects the org.xwiki.contrib.markdown:syntax-markdown-commonmark12 package versions between 8.2 and 8.9.

5

Can CVE-2025-46558 affect all users?

Yes, CVE-2025-46558 can potentially affect all users who visit documents or comments containing the vulnerable Markdown syntax.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203