From 94f903ae23f987a6821be29d05d744464aafd4b9 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Wed, 30 Apr 2025 16:54:47 +0000 Subject: [PATCH] Publish GHSA-8g2j-rhfh-hq3r --- .../GHSA-8g2j-rhfh-hq3r.json | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 advisories/github-reviewed/2025/04/GHSA-8g2j-rhfh-hq3r/GHSA-8g2j-rhfh-hq3r.json diff --git a/advisories/github-reviewed/2025/04/GHSA-8g2j-rhfh-hq3r/GHSA-8g2j-rhfh-hq3r.json b/advisories/github-reviewed/2025/04/GHSA-8g2j-rhfh-hq3r/GHSA-8g2j-rhfh-hq3r.json new file mode 100644 index 00000000000..4866cf6631a --- /dev/null +++ b/advisories/github-reviewed/2025/04/GHSA-8g2j-rhfh-hq3r/GHSA-8g2j-rhfh-hq3r.json @@ -0,0 +1,65 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-8g2j-rhfh-hq3r", + "modified": "2025-04-30T16:53:27Z", + "published": "2025-04-30T16:53:27Z", + "aliases": [ + "CVE-2025-46558" + ], + "summary": "org.xwiki.contrib.markdown:syntax-markdown-commonmark12 vulnerable to XSS via Markdown content", + "details": "### Impact\nThe 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.\n\nTo 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 `` and refresh the page. If an alert appears containing \"XSS\", then the instance is vulnerable.\n\n### Patches\nThis has been patched in version 8.9 of the CommonMark Markdown Syntax 1.2 extension.\n\n### Workarounds\nWe're not aware of any workaround except upgrading.\n\n### References\n* https://jira.xwiki.org/browse/MARKDOWN-80\n* https://github.com/xwiki-contrib/syntax-markdown/commit/d136472d6e8a47981a0ede420a9096f88ffa5035", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Maven", + "name": "org.xwiki.contrib.markdown:syntax-markdown-commonmark12" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "8.2" + }, + { + "fixed": "8.9" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/xwiki-contrib/syntax-markdown/security/advisories/GHSA-8g2j-rhfh-hq3r" + }, + { + "type": "WEB", + "url": "https://github.com/xwiki-contrib/syntax-markdown/commit/d136472d6e8a47981a0ede420a9096f88ffa5035" + }, + { + "type": "PACKAGE", + "url": "https://github.com/xwiki-contrib/syntax-markdown" + }, + { + "type": "WEB", + "url": "https://jira.xwiki.org/browse/MARKDOWN-80" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79" + ], + "severity": "CRITICAL", + "github_reviewed": true, + "github_reviewed_at": "2025-04-30T16:53:27Z", + "nvd_published_at": null + } +} \ No newline at end of file