Security mailing lists by PureSourceCode

CVE-2018-20583

MEDIUM 6.1CVSS 3.0

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

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
30 Dec 2018
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-qx76-c53f-5c7q
Sources
NVDJSONOSV GHSA-qx76-c53f-5c7qJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 MEDIUM 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.0 MEDIUM 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD thephpleague commonmark
cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:*
>= 0.15.6, <= 0.18.0
OSV Packagist league/commonmark >= 0.15.6, < 0.18.1 0.18.1

References

History

  • 25 Nov 2026 20:21 UTC · NVD: first stored (published 30 Dec 2018)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.