Skip to main content
← All vulnerabilities
CVE-2026-71478GHSA-29PJ-957V-52MC

league/commonmark: AttributesExtension href/src unsafe-link filter bypass via embedded control bytes

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.9.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • thephpleague commonmark

    From 1.5.0 · through 2.8.3

  • league/commonmarkPackagist

    From 1.5.0 · fixed in 2.9.0

References 3

GitHub · thephpleague/commonmark