league/commonmark is vulnerable to Cross-Site Scripting (XSS)
61
CVE Score
Medium
Cross-Site Scripting (XSS)
The Attributes extension's href and src unsafe-link filter checks each URL against an anchored denylist regex without first normalizing embedded control bytes. Markdown that hides a javascript: scheme with an embedded tab, newline, or leading control character passes the filter unchanged, even when allow_unsafe_links is disabled. Browsers strip those bytes before parsing the scheme, so the crafted link still executes script in a viewer's session. The fix normalizes control characters in the unsafe-link check so obfuscated dangerous schemes are detected and filtered.
Upgrade the league/commonmark library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you use the Attributes extension to render untrusted Markdown input.
1.5.0 - 2.8.3
Fixed in 2.9.0league/commonmark is vulnerable to Cross-Site Scripting (XSS) in versions 1.5.0 - 2.8.3.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.