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

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-30T16:53:27.000Z
- Modified: 2026-06-17T09:26:37.613Z
- Also known as: GHSA-8g2j-rhfh-hq3r
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- xwiki-contrib syntax-markdown: >= 8.2, < 8.9
- org.xwiki.contrib.markdown:syntax-markdown-commonmark12 (Maven): from 8.2 before 8.9
- xwiki xwiki: from 8.2 before 8.9

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://jira.xwiki.org/browse/MARKDOWN-80> (exploit, issue-tracking, web)
- <https://github.com/xwiki-contrib/syntax-markdown/security/advisories/GHSA-8g2j-rhfh-hq3r> (patch, third-party-advisory, web)
- <https://github.com/xwiki-contrib/syntax-markdown/commit/d136472d6e8a47981a0ede420a9096f88ffa5035> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46558> (advisory)
- <https://github.com/xwiki-contrib/syntax-markdown> (package)

## Sources

- CVE List: [CVE-2025-46558](https://www.cve.org/CVERecord?id=CVE-2025-46558), CVE Terms of Use, modified 2025-04-30
- GitHub Advisory Database: [GHSA-8g2j-rhfh-hq3r](https://github.com/advisories/GHSA-8g2j-rhfh-hq3r), CC-BY-4.0, modified 2025-05-01
- NVD: [CVE-2025-46558](https://nvd.nist.gov/vuln/detail/CVE-2025-46558), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46558 · Whole record: https://cve.day/CVE-2025-46558.json · Rebuilt by cve.day 2026-11-25T22:58:57.212Z
