PT-2026-23795

CVE-2026-30838

·

Published

2026-03-06

·

Updated

2026-04-21

Description by

CVSS 3.1
6.1
Medium
MetricsAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions league/commonmark versions prior to 2.8.1
Description The DisallowedRawHtml extension in league/commonmark can be bypassed by inserting ASCII whitespace characters between a disallowed HTML tag name and the closing '>'. For example, `<script
` would pass through unfiltered and be rendered as a valid HTML tag by browsers. This creates a cross-site scripting (XSS) vector for applications relying on this extension to sanitize untrusted user input. Applications using a dedicated HTML sanitizer, such as HTML Purifier, on the rendered output are not affected. The issue stems from a regex character class that did not match all whitespace characters accepted by browsers as valid tag name terminators.
Recommendations Versions prior to 2.8.1 should be updated to version 2.8.1 or later. As a workaround, set the html input configuration option to 'escape' or 'strip' to disable all raw HTML. Pass the rendered HTML through a dedicated HTML sanitizer before serving it to users.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-4V6X-C7XX-HW9F
USN-8194-1
Found an issue in the description? Have something to add? Feel free to write us 👾