Packagist (PHP)Worst: High18 advisories

league/commonmark: known vulnerabilities

league/commonmark has 18 reviewed security advisories in the GitHub Advisory Database — 10 high, 8 moderate. The most recent was published 2026-09-30. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the league/commonmark versions running across your servers, containers and images, and ranks what to patch first.

How to fix league/commonmark

Upgrade league/commonmark to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):

composer require league/commonmark:^2.10.2 (composer audit)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (18)

league/commonmark: Quadratic-time denial of service in the GitHub Flavored Markdown Table extension block-start scan High 7.5 CWE-400 CWE-407 — Affected: from 2.0.0 up to 2.10.2. Fixed in 2.10.2. Published 2026-09-30. GHSA-3q6v-r5mr-hxv8 · CVE-2026-105830
league/commonmark: DisallowedRawHtml bypassed when a disallowed tag name ends the raw-HTML literal Moderate 6.1 CWE-78 CWE-79 — Affected: from 1.3.0 up to 2.10.2. Fixed in 2.10.2. Published 2026-09-30. GHSA-97jj-33gv-5xf9 · CVE-2026-105829
league/commonmark: Denial of service via distinctly-named attributes in the Attributes extension High 7.5 CWE-1050 CWE-407 — Affected: from 1.5.0 up to 2.10.0. Fixed in 2.10.0. Published 2026-09-01. GHSA-8rr7-cvq3-gmfh · CVE-2026-86428
league/commonmark XSS: `on*` event-handler filter in `AttributesExtension` bypassed with a U+000C form feed High 7.2 CWE-79 CWE-86 — Affected: from 2.7.0 up to 2.9.1. Fixed in 2.9.1. Published 2026-09-01. GHSA-f8fg-pg57-v4j8 · CVE-2026-86431
league/commonmark: Denial of service via crafted code fences, reference links, and emphasis delimiters High 7.5 CWE-1050 CWE-1333 CWE-407 — Affected: from 0.6.0 up to 2.9.1. Fixed in 2.9.1. Published 2026-09-01. GHSA-j8pm-gj4c-rq4x · CVE-2026-86430
league/commonmark: Denial of service in the SmartPunct and Attributes extensions High 7.5 CWE-1050 CWE-407 — Affected: from 1.5.0 up to 2.9.1. Fixed in 2.9.1. Published 2026-09-01. GHSA-jjv6-8j6v-6j52 · CVE-2026-86429
league/commonmark: AttributesExtension href/src unsafe-link filter bypass via embedded control bytes Moderate 6.1 CWE-692 CWE-79 CWE-86 — Affected: from 1.5.0 up to 2.9.0. Fixed in 2.9.0. Published 2026-08-06. GHSA-29pj-957v-52mc · CVE-2026-71478
league/commonmark: Quadratic-time denial of service when parsing crafted Markdown High 7.5 CWE-1050 CWE-407 — Affected: from 0.6.0 up to 2.9.0. Fixed in 2.9.0. Published 2026-08-06. GHSA-2q4p-g7hv-5rgv · CVE-2026-71488
league/commonmark: Denial of service via adjacent inline attribute blocks High 7.5 CWE-407 — Affected: from 1.5.0 up to 2.9.0. Fixed in 2.9.0. Published 2026-08-06. GHSA-g2gp-3wwq-f4ph
league/commonmark: Denial of service via duplicate footnote definitions High 7.5 CWE-407 — Affected: from 1.5.0 up to 2.9.0. Fixed in 2.9.0. Published 2026-08-06. GHSA-jfm3-95jq-q3rf
league/commonmark: Denial of service via colliding heading slugs High 7.5 CWE-407 — Affected: from 2.0.0 up to 2.9.0. Fixed in 2.9.0. Published 2026-08-06. GHSA-mh25-x5hq-wrqp · CVE-2026-86434
league/commonmark: Denial of service via deeply nested XML output Moderate 5.3 CWE-405 — Affected: from 2.0.0 up to 2.9.0. Fixed in 2.9.0. Published 2026-08-06. GHSA-mj63-m3rc-8ppr
league/commonmark has an embed extension allowed_domains bypass Moderate CWE-185 CWE-79 CWE-918 — Affected: from 2.3.0 up to 2.8.2. Fixed in 2.8.2. Published 2026-03-24. GHSA-hh8v-hgvp-g3f5 · CVE-2026-33347
CommonMark has DisallowedRawHtml extension bypass via whitespace in HTML tag names Moderate CWE-79 — Affected: from 2.0.0 up to 2.8.1. Fixed in 2.8.1. Published 2026-03-07. GHSA-4v6x-c7xx-hw9f · CVE-2026-30838
league/commonmark contains a XSS vulnerability in Attributes extension Moderate 6.4 CWE-79 — Affected: from 1.5.0 up to 2.7.0. Fixed in 2.7.0. Published 2025-05-05. GHSA-3527-qv2q-pfvx · CVE-2025-46734
league/commonmark's quadratic complexity bugs may lead to a denial of service High 7.5 CWE-407 — Affected: before 2.6.0. Fixed in 2.6.0. Published 2024-12-09. GHSA-c2pc-g5qf-rfrf · CVE-2024-58382
Moderate severity vulnerability that affects league/commonmark Moderate 6.1 CWE-79 — Affected: before 0.18.3. Fixed in 0.18.3. Published 2019-09-17. GHSA-3v43-877x-qgmq · CVE-2019-10010
PHP League CommonMark vulnerable to Cross-Site Scripting (XSS) Moderate 6.1 CWE-79 — Affected: from 0.15.6 up to 0.18.1. Fixed in 0.18.1. Published 2018-12-30. GHSA-qx76-c53f-5c7q · CVE-2018-20583

Find league/commonmark across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.