Loading advisory.
Loading advisory.
Moderate severity vulnerability that affects league/commonmark
In league/commonmark 0.18.2 and below, malicious users can insert double-encoded HTML entities into their Markdown like this:
Published 2019-03-24 17:58 UTC · Modified 2024-08-04 22:10 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| league/commonmark | Packagist | < 0.18.3 versions 0.1.0, 0.1.1, 0.1.2, 0.10.0, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.13.4, 0.14.0, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.15.4 and 26 more | 0.18.3 | composer require 'league/commonmark:>=0.18.3' |
In league/commonmark 0.18.2 and below, malicious users can insert double-encoded HTML entities into their Markdown like this:
[XSS](javascript&colon;alert%28'XSS'%29)This library would (correctly) unescape the & entity to & during the parsing step. However, the renderer step would fail to properly re-escape the resulting : string, thus producing the following malicious HTML output:
<p><a href="javascript:alert('XSS')">XSS</a></p>Browsers would interpret : as a : character and allow the JS to be executed when the link is clicked.
This vulnerability was present in the upstream library this project was forked from and therefore exists in all prior versions of league/commonmark.
The new 0.18.3 release mirrors the fix made upstream - we no longer attempt to preserve entities when rendering HTML attributes like href, src, title, etc.
The $preserveEntities parameter of Xml::escape() is therefore no longer used internally, so it has been deprecated and marked for removal in the next major release (0.19.0).
Mohit Fawaz for identifying the issue
Sebastiaan Knijnenburg and Ross Tuck for responsibly disclosing/relaying the issue
John MacFarlane for investigating it and implementing the upstream fix we mirrored here
https://nvd.nist.gov/vuln/detail/CVE-2019-10010
https://github.com/thephpleague/commonmark/releases/tag/0.18.3
https://github.com/thephpleague/commonmark/issues/353
https://github.com/FriendsOfPHP/security-advisories/blob/master/league/commonmark/CVE-2019-10010.yaml
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.011 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.011 | first score | v2026.06.15 |