CVE-2025-46734

MediumCVSS 6.4/10Last modified Jun 17, 2026

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.

Metrics

CVSS 3.1 6.4/10CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
May 5, 2025
Last modified
Jun 17, 2026
NVD status
Deferred

Related CVEs from 2025

CVE-2025-467351.1Terraform WinDNS Provider allows users to manage their Windows DNS server resources through Terraform. A security issue has been found in TeCVE-2025-467365.3Umbraco is a free and open source .NET content management system. Prior to versions 10.8.10 and 13.8.1, based on an analysis of the timing oCVE-2025-467377.4SEL-5037 Grid Configurator contains an overly permissive Cross Origin Resource Sharing (CORS) configuration for a data gateway service in thCVE-2025-467386.6An authenticated attacker can maliciously modify layout data files in the SEL-5033 installation directory to execute arbitrary code.CVE-2025-467398.1An unauthenticated user could discover account credentials via a brute-force attack without rate limitingCVE-2025-46748.6The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuCVE-2025-467407.5An authenticated user without user administrative permissions could change the administrator Account Name.CVE-2025-467415.7A suspended or recently logged-out user could continue to interact with Blueframe until the time-out period occurred.CVE-2025-467424.3Users who were required to change their password could still access system information before changing their passwordCVE-2025-467436.3An authenticated user's token could be used by another source after the user had logged out prior to the token expiring.CVE-2025-467442.7An authenticated administrator could modify the Created By username for a user accountCVE-2025-467456.5An authenticated user without user-management permissions could view other users account information.
CVE-2025-46734: Medium severity, CVSS 6.4 | Vulnix