Impact
A cross‑site scripting flaw exists in the CommonMark AttributesExtension. Prefixing an attribute name with a form‑feed byte bypasses the on* event‑handler filter and the allow_unsafe_links check, allowing inline javascript or javascript: URIs to be inserted into the rendered HTML. When a victim loads the generated markup, the injected script executes in the browser, potentially compromising the user’s session and data.
Affected Systems
thephpleague CommonMark library versions from 2.7.0 up to but not including 2.9.1 are affected. Any installation that enables the AttributesExtension to process untrusted Markdown in a web application is vulnerable. Earlier releases and 2.9.1 and later are not known to be affected.
Risk and Exploitability
The vulnerability has a CVSS score of 6.9, indicating moderate severity. The EPSS score is not available, so an estimate of current exploitation probability is not provided. The flaw is not listed in the CISA KEV catalog. An attacker can exploit the issue by crafting Markdown that includes a form‑feed prefixed attribute; execution occurs when users view the rendered HTML in a browser, and no additional privileges are required.
OpenCVE Enrichment