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 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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:*

History

11 Mar 2026, 20:24

Type Values Removed Values Added
References () https://github.com/thephpleague/commonmark/security/advisories/GHSA-4v6x-c7xx-hw9f - () https://github.com/thephpleague/commonmark/security/advisories/GHSA-4v6x-c7xx-hw9f - Mitigation, Vendor Advisory
First Time Thephpleague
Thephpleague commonmark
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 6.1
Summary
  • (es) league/commonmark es un analizador de Markdown de PHP. Antes de la versión 2.8.1, la extensión DisallowedRawHtml puede ser eludida insertando un salto de línea, una tabulación u otro carácter de espacio en blanco ASCII entre el nombre de una etiqueta HTML no permitida y el signo de cierre &gt;. Por ejemplo, pasaría sin filtrar y sería renderizado como una etiqueta HTML válida por los navegadores. Esto es un vector de cross-site scripting (XSS) para cualquier aplicación que dependa de esta extensión para sanear la entrada de usuario no confiable. Todas las aplicaciones que utilizan la extensión DisallowedRawHtml para procesar markdown no confiable están afectadas. Las aplicaciones que utilizan un saneador de HTML dedicado (como HTML Purifier) en la salida renderizada no están afectadas. Este problema ha sido parcheado en la versión 2.8.1.
CPE cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:*

07 Mar 2026, 16:15

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-07 16:15

Updated : 2026-03-11 20:24


NVD link : CVE-2026-30838

Mitre link : CVE-2026-30838

CVE.ORG link : CVE-2026-30838


JSON object : View

Products Affected

thephpleague

  • commonmark
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')