What’s vulnerable
-
League\CommonMark\Extension\Attributes\AttributesExtensionAttribute syntax lets Markdown authors add event-handler attributes that survive html_input and allow_unsafe_links
You’re only affected if
All of these have to be true in your App. If one isn’t, the Advisory doesn’t affect you, even with the vulnerable version installed.
- The App renders Markdown from untrusted input
- The Attributes extension is added to the environment
How to check your App
Find every place the App builds a CommonMark converter or environment and check whether the Attributes extension is added, and whether the Markdown comes from users.
What the fix changed
2.7.0 blocks attributes that start with "on" by default, adds an explicit allowlist of HTML attributes, and makes hand-written href and src attributes respect allow_unsafe_links.
Review and corrections
Analysed 30 Oct 2026. Reviewed and approved by Craig Hewitt on 30 Oct 2026.