Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-8g2j-rhfh-hq3r

Опубликовано: 30 апр. 2025
Источник: github
Github: Прошло ревью
CVSS3: 9

Описание

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

Пакеты

Наименование

org.xwiki.contrib.markdown:syntax-markdown-commonmark12

maven
Затронутые версииВерсия исправления

>= 8.2, < 8.9

8.9

EPSS

Процентиль: 77%
0.01015
Низкий

9 Critical

CVSS3

Дефекты

CWE-79

Связанные уязвимости

CVSS3: 9
nvd
9 месяцев назад

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.

EPSS

Процентиль: 77%
0.01015
Низкий

9 Critical

CVSS3

Дефекты

CWE-79