Vulnerabilities

Vulnerability · CVE-2025-46734

league/commonmark is a PHP Markdown parser.

Published May 5, 2025 · catalog updated May 6, 2025 · league/commonmark is a PHP

Check if you run it

No confirmed exploitation is on record for CVE-2025-46734. EPSS is 0.38%. Act only if a listed version of league/commonmark is a PHP is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (league/commonmark is a PHP).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Medium6.4
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.38%
Remediation
Version ranges on file
Affected products
vendor thephpleague commonmark < 2.7.0

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 and 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. Versio

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • vendor thephpleague commonmark < 2.7.0< 2.7.0

How to fix CVE-2025-46734

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2025-46734. EPSS is 0.38%. Act only if a listed version of league/commonmark is a PHP is installed.

Which versions are affected?

Compare what you have installed with thephpleague commonmark < 2.7.0 < 2.7.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 0.38%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. May 5, 2025 · EUVD

    Detected

    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 and to mitigate cross-site scripting (XSS) attacks by stripping raw HTML and dis

  2. May 6, 2025 · EUVD

    Updated

    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 and to mitigate cross-site scripting (XSS) attacks by stripping raw HTML and dis

Sources

  • CVE.orgVulnerability recordCVE-2025-46734

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2025-46734

    30-day exploitation probability 0.4%

    first.org
  • EUVDVulnerability recordEUVD-2025-13411

    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

    euvd.enisa.europa.eu

References

Freshness

Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.