VDB
Sign up
MEDIUM6.1

GHSA-qx76-c53f-5c7q

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

Quick fix

GHSA-qx76-c53f-5c7q — league/commonmark: upgrade to the fixed version with the command below.

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

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/league/commonmark
Introduced in: 0.15.6Fixed in: 0.18.1
Fixcomposer require league/commonmark:^0.18.1

References