
CVE catalog
CVE-2025-46734
league/commonmark vulnerabilities
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.38% · Oct 25, 2026
league/commonmark is a PHP Markdown parser. A cross-site scripting (XSS) vulnerability in the Attributes extension of the league/commonmark library (versions 1.5.0 through 2.6.x) allows remote attackers to insert malicious JavaScript calls into HTML. The league/commonmark library provides configuration options such as `html_input: 'strip'` and `allow_unsafe_links: false` to mitigate cross-site scripting (XSS) attacks by stripping raw HTML and disallowing unsafe links. However, when the Attributes Extension is enabled, it introduces a way for users to inject arbitrary HTML attributes into elements via Markdown syntax using curly braces. Version 2.7.0 contains three changes to prevent this XSS attack vector: All attributes starting with `on` are considered unsafe and blocked by default; support for an explicit allowlist of allowed HTML attributes; and manually-added `href` and `src` attributes now respect the existing `allow_unsafe_links` configuration option. If upgrading is not feasible, please consider disabling the `AttributesExtension` for untrusted users and/or filtering the rendered HTML through a library like HTMLPurifier.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | php-league-commonmark | sid | 2.10.4-1 | fixed |
| Debian | php-league-commonmark | forky | 2.10.4-1 | fixed |
| Debian | php-league-commonmark | trixie | 2.7.0-1+deb13u1 | fixed |
| Debian | php-league-commonmark | bookworm | 2.3.9-1+deb12u1 | fixed |
| Ubuntu | php-league-commonmark | noble | Not reported | vulnerable |
| Ubuntu | php-league-commonmark | noble | 2.4.2-2ubuntu0.1~esm1 | fixed |
| Ubuntu | php-league-commonmark | pro | 2.3.9-1 | vulnerable |
| Ubuntu | php-league-commonmark | pro | 2.4.1-1 | vulnerable |
| Ubuntu | php-league-commonmark | pro | 2.4.2-1 | vulnerable |
| Ubuntu | php-league-commonmark | pro | 2.4.2-2 | vulnerable |
| Ubuntu | php-league-commonmark | pro | 2.4.2-2ubuntu0.1~esm1 | fixed |
| Ubuntu | php-league-commonmark | pro | 2.3.9-1 | vulnerable |
| Ubuntu | php-league-commonmark | pro | 2.4.1-1 | vulnerable |
| Ubuntu | php-league-commonmark | pro | 2.4.2-1 | vulnerable |
| Ubuntu | php-league-commonmark | pro | 2.4.2-2 | vulnerable |
| Ubuntu | php-league-commonmark | pro | 2.4.2-2ubuntu0.1~esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | php-league-commonmark | source | sid | 2.7.0-1 | not yet assigned | Not reported | Not reported |
| Debian | php-league-commonmark | source | forky | 2.7.0-1 | not yet assigned | Not reported | Not reported |
| Debian | php-league-commonmark | source | trixie | 2.7.0-1 | not yet assigned | Not reported | Not reported |
| Debian | php-league-commonmark | source | bookworm | 2.3.9-1+deb12u1 | not yet assigned | Not reported | Not reported |
| Ubuntu | php-league-commonmark | deb | noble | 2.4.2-2ubuntu0.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | php-league-commonmark | deb | pro | 2.4.2-2ubuntu0.1~esm1 | Not reported | USN-8194-1 | Not reported |
| Ubuntu | php-league-commonmark | deb | pro | 2.4.2-2ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2025-46734 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [php-league-commonmark]Fixed
Details (2)
2.3.9-1+deb12u1· all · bookwormFixed · Fixed:
2.3.9-1+deb12u1usn · php-league-commonmark · debian · bookworm; usn · php-league-commonmark · debian · 12
2.3.9-1+deb12u1· all · bookwormFixed · Fixed:
2.3.9-1+deb12u1usn · php-league-commonmark · debian · bookworm; usn · php-league-commonmark · debian · 12
[Debian 13 (Trixie)]
- [php-league-commonmark]Fixed
Details (2)
2.7.0-1+deb13u1· all · trixieFixed · Fixed:
2.7.0-1usn · php-league-commonmark · debian · 13
2.7.0-1+deb13u1· all · trixieFixed · Fixed:
2.7.0-1usn · php-league-commonmark · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-46734]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-46734]
- [https://osv.dev/vulnerability/USN-8194-1]
- [https://security-tracker.debian.org/tracker/CVE-2025-46734]
- [https://ubuntu.com/security/notices/USN-8194-1]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Ubuntu Security Notices (USN)]