CVE-2026-30838

Publication date 7 March 2026

Last updated 23 April 2026


Ubuntu priority

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.

Status

Package Ubuntu Release Status
php-league-commonmark 25.10 questing
Vulnerable
24.04 LTS noble
Fixed 2.4.2-2ubuntu0.1~esm1
22.04 LTS jammy
Fixed 1.6.7-1ubuntu0.1~esm1
20.04 LTS focal
Fixed 1.3.1-1ubuntu2+esm1

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
php-league-commonmark

References

Related Ubuntu Security Notices (USN)

    • USN-8194-1
    • league/commonmark vulnerabilities
    • 21 April 2026

Other references


Access our resources on patching vulnerabilities