CVE catalog

CVE-2026-71478

league/commonmark is a PHP library for parsing and rendering CommonMark Markdown. From 1.5.0 until 2.9.0, the AttributesExtension's href and src unsafe-link filter can be bypassed by embedding control

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.36% · Oct 25, 2026

league/commonmark is a PHP library for parsing and rendering CommonMark Markdown. From 1.5.0 until 2.9.0, the AttributesExtension's href and src unsafe-link filter can be bypassed by embedding control bytes, such as a tab, carriage return, line feed, or leading C0 control character, in a javascript: URL that browsers discard before parsing the scheme, causing the browser to still execute the script even when the unsafe-link filter is enabled. This issue is fixed in 2.9.0.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianphp-league-commonmarksid2.10.4-1fixed
Debianphp-league-commonmarkforky2.10.4-1fixed
Debianphp-league-commonmarktrixie2.7.0-1+deb13u1vulnerable
Debianphp-league-commonmarkbookworm2.3.9-1+deb12u1vulnerable
Composerleague/commonmarkNot reported2.9.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianphp-league-commonmarksourcesid2.9.0-1not yet assignedNot reportedNot reported
Debianphp-league-commonmarksourceforky2.9.0-1not yet assignedNot reportedNot reported
Debianphp-league-commonmarksourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianphp-league-commonmarksourcebookworm(unfixed)not yet assignedNot reportedNot reported
Composerleague/commonmarkcomposerNot reported2.9.0Not reportedNot reportedNot reported

Notes

[trixie] php-league-commonmark: Minor issue [bookworm] php-league-commonmark: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 2.3.9-1+deb12u1 · all · bookworm

      Affected

      nvd · php-league-commonmark · debian · bookworm; nvd · php-league-commonmark · debian · 12

    • 2.3.9-1+deb12u1 · all · bookworm

      Affected

      nvd · php-league-commonmark · debian · bookworm; nvd · php-league-commonmark · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 2.7.0-1+deb13u1 · all · trixie

      Affected

      nvd · php-league-commonmark · debian · 13

    • 2.7.0-1+deb13u1 · all · trixie

      Affected

      nvd · php-league-commonmark · debian · 13

Observed:

References