WS-2026-0055
Published:August 03, 2026
Updated:September 02, 2026
league/commonmark's AttributesListener::findTargetAndDirection() used continue where it should have stopped walking, so once an AttributesInline node could no longer select a sibling it re-scanned all remaining siblings on every iteration. Documents containing long runs of adjacent inline attribute blocks were therefore resolved in quadratic time, which can be abused for denial of service. Fixed in 2.9.0 by breaking out of the walk and targeting the parent node.
Affected Packages
https://github.com/thephpleague/commonmark.git (GITHUB):
Affected version(s) >=1.5.0 <2.9.0Fix Suggestion:
Update to version 2.9.0league/commonmark (PHP):
Affected version(s) >=1.5.0 <2.9.0Fix Suggestion:
Update to version 2.9.0Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Inefficient Algorithmic Complexity