Skip to content
Heist/ feed
Back to feed
Critical

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-46558
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 09:47 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 30 Apr 2025, 18:27 UTC

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.

osv:CVE-2025-46558
Complete source record
{
  "id": "4327f1ada6321098e51115564bff6980e40a7d1223ffdd21834cdcfc6752271b",
  "url": "https://osv.dev/vulnerability/CVE-2025-46558",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "org.xwiki.contrib.markdown:syntax-markdown-commonmark12 vulnerable to XSS via Markdown content",
    "summary": "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.",
    "evidence": "osv:CVE-2025-46558",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-46558",
      "aliases": [
        "CVE-2025-46558",
        "GHSA-8g2j-rhfh-hq3r"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki-contrib/syntax-markdown",
              "type": "GIT",
              "events": [
                {
                  "introduced": "58f8648921631c7805b8bf207145cb64d4450a3a"
                },
                {
                  "fixed": "9a45171f9ace332315d09563129854c18ff3fb8c"
                },
                {
                  "fixed": "d136472d6e8a47981a0ede420a9096f88ffa5035"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "8.2"
                      },
                      {
                        "fixed": "8.9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d136472d6e8a47981a0ede420a9096f88ffa5035"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "syntax-markdown-8.8",
            "syntax-markdown-8.7.1",
            "syntax-markdown-8.7",
            "syntax-markdown-8.6",
            "syntax-markdown-8.5.4",
            "syntax-markdown-8.5.3",
            "syntax-markdown-8.5.2",
            "syntax-markdown-8.5.1",
            "syntax-markdown-8.5",
            "syntax-markdown-8.4.3",
            "syntax-markdown-8.4.2",
            "syntax-markdown-8.4.1",
            "syntax-markdown-8.4",
            "syntax-markdown-8.3",
            "syntax-markdown-8.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46558.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.565803124Z",
      "provider": "osv",
      "references": [
        "https://jira.xwiki.org/browse/MARKDOWN-80",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46558.json",
        "https://github.com/xwiki-contrib/syntax-markdown/security/advisories/GHSA-8g2j-rhfh-hq3r",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-46558",
        "https://github.com/xwiki-contrib/syntax-markdown/commit/d136472d6e8a47981a0ede420a9096f88ffa5035"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46558.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-46558",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 511528,
  "published_at": "2025-04-30T18:27:30.953+00:00"
}