Skip to main content
VulnerabilityPublished Updated

CVE-2025-46734: Php league commonmark · league/commonmark is a PHP Markdown parser

Affects php-league-commonmarkSource GCVE Database

0
Compare

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

CVSS 3.1 base score
6.4Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 May 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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).

Affected software

ProductAffectedFixed in
Ubuntu Pro 24.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <2.4.2-2ubuntu0.1~esm1
Fixed in
  • 2.4.2-2ubuntu0.1~esm1
Ubuntu Pro 22.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <1.6.7-1ubuntu0.1~esm1
Fixed in
  • 1.6.7-1ubuntu0.1~esm1
Ubuntu Pro 20.04 LTSphp-league-commonmarkpkg:deb/ubuntu/php-league-commonmark?arch=source&distro=esm-apps/focalOther threatsAffected
  • <1.3.1-1ubuntu2+esm1
Fixed in
  • 1.3.1-1ubuntu2+esm1

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

Community reviews

Loading reviews…