CVE-2025-46734: Php league commonmark · league/commonmark is a PHP Markdown parser
Affects php-league-commonmarkSource GCVE Database
Not known to be exploited · CVSS 6.4 Medium · fixed in 1.3.1-1ubuntu2+esm1 : update php-league-commonmark when convenient.
Data as of 24 Nov 2026, 20:10 UTC
- Patch
- Available – fixed in 1.3.1-1ubuntu2+esm1, 1.6.7-1ubuntu0.1~esm1, 2.4.2-2ubuntu0.1~esm1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 5 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade the Ubuntu php-league-commonmark to 1.3.1-1ubuntu2+esm1 (package) or 1.6.7-1ubuntu0.1~esm1 (package) or 2.4.2-2ubuntu0.1~esm1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 24.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2025-46734 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-46734 (opens in a new tab)
- github.com/thephpleague/commonmark/commit/f0d626cf05ad3e99e6db26ebcb9091b6cd1cd89b (opens in a new tab)
- github.com/thephpleague/commonmark/security/advisories/GHSA-3527-qv2q-pfvx (opens in a new tab)
- ubuntu.com/security/notices/USN-8194-1 (opens in a new tab)