Skip to main content
VulnerabilityPublished Updated

CVE-2026-30838: Php league commonmark · league/commonmark is a PHP Markdown parser

Affects php-league-commonmarkSource GCVE Database

0
Compare
Authoritative record:CVE-2026-30838· Medium 5.1

Not known to be exploited · CVSS 5.1 Medium · fixed in 1.3.1-1ubuntu2+esm1 : update php-league-commonmark when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.3.1-1ubuntu2+esm1, 1.6.7-1ubuntu0.1~esm1, 2.4.2-2ubuntu0.1~esm1
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade the Ubuntu php-league-commonmark to 1.3.1-1ubuntu2+esm1 (package) or 1.6.7-1ubuntu0.1~esm1 (package) or 2.4.2-2ubuntu0.1~esm1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 26.10php-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=stonkingOther threatsAffected
  • 2.8.0-1 – 2.10.0-1
4 affected builds
Fixed in–
Ubuntu 26.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=resoluteOther threatsAffected
  • =2.7.0-1
  • =2.7.1-2
  • =2.8.0-1
Fixed in–
Ubuntu 25.10php-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=questingOther threatsAffected
  • =2.6.1-2
  • =2.6.2-1
  • =2.7.0-1
Fixed in–
Ubuntu Pro 24.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <2.4.2-2ubuntu0.1~esm1
Fixed in
  • 2.4.2-2ubuntu0.1~esm1
Ubuntu Pro 22.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <1.6.7-1ubuntu0.1~esm1
Fixed in
  • 1.6.7-1ubuntu0.1~esm1
Ubuntu Pro 20.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps/focalOther threatsAffected
  • <1.3.1-1ubuntu2+esm1
Fixed in
  • 1.3.1-1ubuntu2+esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…