SCA: security update for league/commonmark (GHSA-3527-qv2q-pfvx)

medium Tenable Cloud Security Plugin ID 434712

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2025-46734)

Solution

Update the league/commonmark library and its related packages to version 2.7.0 or later.

See Also

https://github.com/advisories/GHSA-3527-qv2q-pfvx

Plugin Details

Severity: Medium

ID: 434712

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 8/19/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 9.33

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.1

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:N

CVSS Score Source: CVE-2025-46734

CVSS v3

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5.6

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/5/2025

Vulnerability Publication Date: 5/5/2025

Reference Information

CVE: CVE-2025-46734

cwe: CWE-79