Skip to main content

CVE-2026-105829: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in thephpleague commonmark

0
Medium
VulnerabilityCVE-2026-105829cvecve-2026-105829
Published: 10/08/2026 (10/08/2026, 14:10:30 UTC)
Source: CVE Database V5
Vendor/Project: thephpleague
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Affected software

thephpleague

commonmark

Packagistmore threats →ai
thephpleague/commonmark
pkg:composer/thephpleague/commonmark
Affected versions
>=1.3.0 <2.10.2

Run 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

AILast updated: 10/08/2026, 14:35:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses