Live threats

All CVEs / Thephpleague

CVE-2018-20583Thephpleague Commonmark

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Dec 30, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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).

Original NVD text.

What to do

  1. Apply the vendor's security update for Commonmark.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist league/commonmark ≥ 0.15.6 < 0.18.1 0.18.1 composer require "league/commonmark:^0.18.1"

Per OSV / GitHub Advisories (GHSA-qx76-c53f-5c7q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
thephpleaguecommonmark≥ 0.15.6 ≤ 0.18.0

Official sources

References

Links published by the sources. Open them with care.