CVE-2025-46558CWE-79

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

Critical · published April 30, 2025

CVSS v3.1
9.1
EPSS
0%
Percentile
40.2
In the wild
Unconfirmed
What it is

🔥 XWiki Contrib's Markdown syntax is harboring an XSS vulnerability that could turn your wiki space into a playground for malicious code! Think of it like a restaurant where patrons can write their own menus, but without any checks on what ingredients they include. A clever chef (attacker) could sneak in some surprise spices (JavaScript) that could ruin the dish for everyone else! An attacker could inject JavaScript into wiki pages or comments, executing it in the browsers of unsuspecting users. If this code runs in the context of an admin user, the whole XWiki installation’s confidentiality, integrity, and availability could be compromised — a recipe for absolute disaster!

Put simply

Think of it like a restaurant where patrons can write their own menus, but without any checks on what ingredients they include. A clever chef (attacker) could sneak in some surprise spices (JavaScript) that could ruin the dish for everyone else! This vulnerability in XWiki allows users to embed malicious JavaScript into Markdown-formatted content, which can then be executed in the browsers of users who view that content, leading to potential unauthorized actions and information disclosure.

What to do

An attacker could inject JavaScript into wiki pages or comments, executing it in the browsers of unsuspecting users. If this code runs in the context of an admin user, the whole XWiki installation’s confidentiality, integrity, and availability could be compromised — a recipe for absolute disaster! Upgrade to XWiki version 8.9 or higher to patch this vulnerability immediately. Additionally, review and sanitize user input to ensure no harmful code can be executed through Markdown content. You've got this! By following these steps, you’ll not only secure your wiki but also earn your security hero badge! 🦸‍♂️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00478 · 40.2th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2025-04-30T18:27Z
EPSS history
Timeline
  • 30 APR 18:27Z
    org.xwiki.contrib.markdown:syntax-markdown-commonmark12 vulnerable to XSS via Markdown content
    cvelistv5