CVE-2026-105829: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in thephpleague commonmark
Description
League CommonMark from 1.3.0 before 2.10.2 contains a cross-site scripting vulnerability that allows users posting Markdown to bypass the DisallowedRawHtml extension by ending raw HTML with a bare disallowed tag name. Attackers can place a lone <script or <iframe line followed by a block supplying attributes like src or onload, executing stored scripts in viewers' browsers under default GFM settings.
CVSS v4.0
Score 5.3medium
Affected software
thephpleague
commonmark
pkg:composer/thephpleague/commonmarkRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Thephpleague commonmark versions 1.3.0 up to but not including 2.10.2 contain a stored cross-site scripting vulnerability. Attackers can exploit this by posting Markdown that includes raw HTML ending with a disallowed tag name without proper neutralization. This bypasses the DisallowedRawHtml extension, enabling execution of malicious scripts in the browsers of users viewing the content under default GFM settings. The vulnerability is identified as CVE-2026-105829 with a CVSS 4.0 base score of 5.3, indicating medium severity.
Potential Impact
Successful exploitation allows attackers to execute arbitrary scripts in the context of the victim's browser when viewing Markdown content rendered by the vulnerable commonmark library. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection. However, the attack requires user interaction (UI:P) and has low vector complexity (AC:L) with no privileges required (PR:N).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider disabling or restricting the use of raw HTML in Markdown or applying custom sanitization to prevent injection of disallowed tags. Monitor thephpleague project for updates addressing this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-10-05T21:59:09.591Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac7a6672cdf04f6561df637
Added to database: 10/08/2026, 14:19:19 UTC
Last enriched: 10/08/2026, 14:35:35 UTC
Last updated: 10/08/2026, 17:36:26 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.