CVE catalog

CVE-2026-30838

league/commonmark is a PHP Markdown parser. Prior to version 2.8.1, the DisallowedRawHtml extension can be bypassed by inserting a newline, tab, or other ASCII whitespace character between a disallowe

[CVE catalog]

Severity
Medium · CVSS 5.1
Published
Source
[NVD] · [CVE record]
EPSS
0.23% · Oct 25, 2026

league/commonmark is a PHP Markdown parser. Prior to version 2.8.1, the DisallowedRawHtml extension can be bypassed by inserting a newline, tab, or other ASCII whitespace character between a disallowed HTML tag name and the closing >. For example, <script\n> would pass through unfiltered and be rendered as a valid HTML tag by browsers. This is a cross-site scripting (XSS) vector for any application that relies on this extension to sanitize untrusted user input. All applications using the DisallowedRawHtml extension to process untrusted markdown are affected. Applications that use a dedicated HTML sanitizer (such as HTML Purifier) on the rendered output are not affected. This issue has been patched in version 2.8.1.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianphp-league-commonmarksid2.10.4-1fixed
Debianphp-league-commonmarkforky2.10.4-1fixed
Debianphp-league-commonmarktrixie2.7.0-1+deb13u1fixed
Debianphp-league-commonmarkbookworm2.3.9-1+deb12u1fixed
Composerleague/commonmarkNot reported2.8.1fixed
Cpephp-league-commonmarkNot reportedNot reportedvulnerable
Cpephp-league-commonmarkNot reported2.4.2-2ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianphp-league-commonmarksourcesid2.8.1-1not yet assignedNot reportedNot reported
Debianphp-league-commonmarksourceforky2.8.1-1not yet assignedNot reportedNot reported
Debianphp-league-commonmarksourcetrixie2.7.0-1+deb13u1not yet assignedNot reportedNot reported
Debianphp-league-commonmarksourcebookworm2.3.9-1+deb12u1not yet assignedNot reportedNot reported
Composerleague/commonmarkcomposerNot reported2.8.1Not reportedNot reportedNot reported
Cpephp-league-commonmarkcpeNot reported2.4.2-2ubuntu0.1~esm1Not reportedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 2.3.9-1+deb12u1 · all · bookworm

      Fixed · Fixed: 2.3.9-1+deb12u1

      nvd · php-league-commonmark · debian · bookworm; nvd · php-league-commonmark · debian · 12

    • 2.3.9-1+deb12u1 · all · bookworm

      Fixed · Fixed: 2.3.9-1+deb12u1

      nvd · php-league-commonmark · debian · bookworm; nvd · php-league-commonmark · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 2.7.0-1+deb13u1 · all · trixie

      Fixed · Fixed: 2.7.0-1+deb13u1

      nvd · php-league-commonmark · debian · 13

    • 2.7.0-1+deb13u1 · all · trixie

      Fixed · Fixed: 2.7.0-1+deb13u1

      nvd · php-league-commonmark · debian · 13

Observed:

References