CVE-2019-10010 Moderate severity vulnerability that affects league/commonmark

Medium 6.1 Published Updated

Remote attackers can inject malicious scripts via double-encoded HTML entities in the PHP League CommonMark library, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-10010?

CVE-2019-10010 is a medium-severity cross-site scripting vulnerability in n/a, published on 24 Mar 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library before 0.18.3 allows remote attackers to insert unsafe links into HTML by using double-encoded HTML entities that are not properly escaped during rendering, a different vulnerability than CVE-2018-20583.

Weakness: CWE-79

Which versions are affected by CVE-2019-10010?

2 open source packages ship an affected version, including league/commonmark. It affects 1 product.

PackageAffectedFixed in
league/commonmark PackagistAll versions0.18.3
league/commonmark PackagistAll versions0.18.3

Products include Thephpleague Commonmark.

How do I fix CVE-2019-10010?

Upgrade league/commonmark to 0.18.3 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2019-10010 being exploited?

There is no known exploitation of CVE-2019-10010 in the wild and no public exploit code.

Sources

Also known as GHSA-3v43-877x-qgmq.

Is CVE-2019-10010 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free