Approved changes feed: RSS · Atom

cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorThephpleague (04d2ea8d-6c04-5d58-b17e-92c7b2478499)
ProductCommonmark (55ac6a2c-bbee-58ee-a045-03e03a7fba6d)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/thephpleague/commonmark purl2cpe 2026-06-01 10:15:11.666852

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-33347 vulnerable 2026-06-08 07:59:09.742580 league/commonmark has an embed extension allowed_domains bypass
league/commonmark is a PHP Markdown parser. From version 2.3.0 to before version 2.8.2, the DomainFilteringAdapter in the Embed extension is vulnerable to an allowlist bypass due to a missing hostname boundary assertion in the domain-matching regex. An attacker-controlled domain like youtube.com.evil passes the allowlist check when youtube.com is an allowed domain. This issue has been patched in version 2.8.2.
Published: 2026-03-24T19:26:23.872Z
Updated: 2026-03-26T19:52:12.754Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-30838 vulnerable 2026-06-08 07:57:14.349411 league/commonmark: DisallowedRawHtml extension bypass via whitespace in HTML tag names
league/commonmark is a PHP Markdown parser. Prior to version 2.8.1, the DisallowedRawHtml extension can be bypassed by inserting a newline, tab, or other ASCII whitespace character between a disallowed HTML tag name and the closing >. For example, <script\n> would pass through unfiltered and be rendered as a valid HTML tag by browsers. This is a cross-site scripting (XSS) vector for any application that relies on this extension to sanitize untrusted user input. All applications using the DisallowedRawHtml extension to process untrusted markdown are affected. Applications that use a dedicated HTML sanitizer (such as HTML Purifier) on the rendered output are not affected. This issue has been patched in version 2.8.1.
Published: 2026-03-07T16:00:32.351Z
Updated: 2026-03-09T18:26:15.482Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2025-46734 vulnerable 2026-06-08 07:27:08.732767 league/commonmark Cross-site Scripting vulnerability in Attributes extension
MEDIUM (6.4)
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.
Published: 2025-05-05T19:52:59.521Z
Updated: 2025-05-06T13:47:03.821Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2019-10010 vulnerable 2026-06-08 05:12:21.909129 Details available
Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library before 0.18.3 allows remote attackers to insert unsafe links into HTML by using double-encoded HTML entities that are not properly escaped during rendering, a different vulnerability than CVE-2018-20583.
Published: 2019-03-24T17:58:54.000Z
Updated: 2024-08-04T22:10:08.687Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2018-20583 vulnerable 2026-06-08 05:11:27.567008 Details available
Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18.x before 0.18.1 allows remote attackers to insert unsafe URLs into HTML (even if allow_unsafe_links is false) via a newline character (e.g., writing javascript as javascri%0apt).
Published: 2018-12-30T05:00:00.000Z
Updated: 2024-09-16T21:57:28.330Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.