Skip to content
OpenAdvisories
Medium · 6.1 CVE-2018-20583 EUVD-2022-5057GHSA-qx76-c53f-5c7q

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

Published Dec 30, 2018 · Updated Sep 16, 2024 · Assigned by mitre

Description

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

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist league/commonmark >= 0.15.6, < 0.18.1 0.18.1 GHSA-qx76-c53f-5c7q

References