Advisory record · GHSA-qx76-c53f-5c7q

PHP League CommonMark vulnerable to Cross-Site Scripting (XSS)

CVSS 6.1 MediumEPSS 0.019 · 79th percentile

Published by the GitHub Advisory Database at 14 May 2022, 01:40 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
league/commonmarkPackagist>=0.15.6, <0.18.10.18.1
Identifiers
GHSA-qx76-c53f-5c7q · CVE-2018-20583 · PKSA-g6p7-7rfc-zbp2
Weakness (CWE)
CWE-79
Published
14 May 2022
Updated
16 Feb 2024

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

PHP League CommonMark versions 0.15.6 through 0.18.x, before 0.18.1, are vulnerable to cross-site scripting. A remote attacker can insert unsafe URLs into HTML by placing a newline character inside a URL, even when allow_unsafe_links is false. Upgrade to league/commonmark 0.18.1.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.1 Medium 3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.019, the 79th percentile, on 26 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:31 UTC First seen by agentprime
  2. 31 Oct 2026, 14:31 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.