league/commonmark: is it safe?

Short answer: Version 2.10.2 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Composer league/commonmark has 18 known advisories in the phpwarden feed. Feed 2026.11.23.2, updated 2026-11-23.

18advisories
0critical
0on CISA KEV
0no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2018-20583PHP League CommonMark vulnerable to Cross-Site Scripting (XSS)medium6.1>=0.15.6 and <0.18.10.18.1
CVE-2019-10010Moderate severity vulnerability that affects league/commonmarkmedium6.1<0.18.30.18.3
CVE-2026-71488league/commonmark: Quadratic-time denial of service when parsing crafted Markdownhigh7.5>=0.6.0 and <2.9.02.9.0
CVE-2026-86429league/commonmark: Denial of service in the SmartPunct and Attributes extensionshigh7.5>=1.5.0 and <2.9.12.9.1
CVE-2026-86434league/commonmark: Denial of service via colliding heading slugshigh7.5>=2.0.0 and <2.9.02.9.0
CVE-2026-86428league/commonmark: Denial of service via distinctly-named attributes in the Attributes extensionhigh7.5>=1.5.0 and <2.10.02.10.0
CVE-2026-86430league/commonmark: Denial of service via crafted code fences, reference links, and emphasis delimitershigh7.5>=0.6.0 and <2.9.12.9.1
CVE-2024-58382league/commonmark's quadratic complexity bugs may lead to a denial of servicehigh7.5<2.6.02.6.0
CVE-2026-86431league/commonmark XSS: `on*` event-handler filter in `AttributesExtension` bypassed with a U+000C form feedhigh7.2>=2.7.0 and <2.9.12.9.1
CVE-2025-46734league/commonmark contains a XSS vulnerability in Attributes extensionmedium6.4>=1.5.0 and <2.7.02.7.0
CVE-2026-105830league/commonmark: Quadratic-time denial of service in the GitHub Flavored Markdown Table extension block-start scanhigh7.5>=2.0.0 and <2.10.22.10.2
CVE-2026-71478league/commonmark: AttributesExtension href/src unsafe-link filter bypass via embedded control bytesmedium6.1>=1.5.0 and <2.9.02.9.0
CVE-2026-33347league/commonmark has an embed extension allowed_domains bypassmedium0.0>=2.3.0 and <2.8.22.8.2
CVE-2026-105829league/commonmark: DisallowedRawHtml bypassed when a disallowed tag name ends the raw-HTML literalmedium6.1>=1.3.0 and <2.10.22.10.2
CVE-2026-30838CommonMark has DisallowedRawHtml extension bypass via whitespace in HTML tag namesmedium0.0>=2.0.0 and <2.8.12.8.1
GHSA-g2gp-3wwq-f4phleague/commonmark: Denial of service via adjacent inline attribute blockshigh7.5>=1.5.0 and <2.9.02.9.0
GHSA-jfm3-95jq-q3rfleague/commonmark: Denial of service via duplicate footnote definitionshigh7.5>=1.5.0 and <2.9.02.9.0
GHSA-mj63-m3rc-8pprleague/commonmark: Denial of service via deeply nested XML outputmedium5.3>=2.0.0 and <2.9.02.9.0

Quick answers

Is league/commonmark safe to use?

Version 2.10.2 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Is league/commonmark being actively exploited?

None of its 18 known vulnerabilities are on CISA's Known Exploited Vulnerabilities list today.

How do I check my own site?

Run `phpwarden deps composer.lock`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/league/commonmark.svg)](https://phpwarden.io/packages/league/commonmark)