MediumGHSA-qx76-c53f-5c7qCVE-2018-20583

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

Published 14 May 2022 · Updated 16 Feb 2024

Affected package

Affected
>=0.15.6 <0.18.1
Fixed in
0.18.1
Update to the fixed version for your release line, for example:composer require league/commonmark:^0.18.1

Details

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

Is GHSA-qx76-c53f-5c7q in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected league/commonmark, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.