Cross-Site Scripting Vulnerability in league/commonmark PHP Markdown Parser
CVE-2026-30838
What is CVE-2026-30838?
The league/commonmark PHP Markdown parser is susceptible to a cross-site scripting (XSS) vulnerability due to a flaw in the DisallowedRawHtml extension. Attackers can exploit this weakness by inserting whitespace characters between disallowed HTML tag names and the closing >, allowing malicious scripts to bypass filters and be executed by browsers. This presents a significant risk for applications relying on this extension to handle untrusted input. Users are urged to upgrade to version 2.8.1 or later, or implement a dedicated HTML sanitizer such as HTML Purifier to mitigate the risk.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
commonmark < 2.8.1
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved
