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

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 16% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-06T20:30:32.045Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-29pj-957v-52mc
- Weaknesses: CWE-79, CWE-86, CWE-692
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- thephpleague commonmark: >= 1.5.0, <= 2.8.3
- league/commonmark (Packagist): from 1.5.0 before 2.9.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/thephpleague/commonmark/security/advisories/GHSA-29pj-957v-52mc> (exploit, web)
- <https://github.com/thephpleague/commonmark/commit/493a5aa7d65754b73846006eaff9c2c4431a8e2c> (web)
- <https://github.com/thephpleague/commonmark/releases/tag/2.9.0> (web)
- <https://github.com/thephpleague/commonmark> (package)

## Sources

- CVE List: [CVE-2026-71478](https://www.cve.org/CVERecord?id=CVE-2026-71478), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-29pj-957v-52mc](https://github.com/advisories/GHSA-29pj-957v-52mc), CC-BY-4.0, modified 2026-08-21
- NVD: [CVE-2026-71478](https://nvd.nist.gov/vuln/detail/CVE-2026-71478), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71478 · Whole record: https://cve.day/CVE-2026-71478.json · Rebuilt by cve.day 2026-11-25T22:59:31.813Z
