Incomplete Denylist to Cross-Site Scripting Affecting league/commonmark package, versions >=1.5.0, <2.9.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-LEAGUECOMMONMARK-18600665
  • published9 Aug 2026
  • disclosed6 Aug 2026
  • creditUnknown

Introduced: 6 Aug 2026

NewCVE-2026-71478  (opens in a new tab)
CWE-692  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-86  (opens in a new tab)

How to fix?

Upgrade league/commonmark to version 2.9.0 or higher.

Overview

league/commonmark is a PHP-based Markdown parser which supports the full CommonMark spec. It is based on the CommonMark JS reference implementation.

Affected versions of this package are vulnerable to Incomplete Denylist to Cross-Site Scripting via the filterAttributes process. An attacker can execute arbitrary JavaScript in the context of the victim's browser by embedding control bytes within a javascript: URL in the href or src attribute, which bypasses the unsafe-link filter and is executed when a user interacts with the crafted link. This is only exploitable if the AttributesExtension is enabled and allow_unsafe_links is set to false.

CVSS Base Scores

version 4.0
version 3.1