CVE-2016-10531
Sanitization bypass using HTML Entities in marked
Description
Affected versions of marked are susceptible to a cross-site scripting vulnerability in link components when sanitize:true is configured.
Proof of Concept
This flaw exists because link URIs containing HTML entities get processed in an abnormal manner. Any HTML Entities get parsed on a best-effort basis and included in the resulting link, while if that parsing fails that character is omitted.
For example:
A link URI such as
javascript֍ocument;alert(1)
Renders a valid link that when clicked will execute alert(1).
Recommendation
Update to version 0.3.6 or later.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » markedvia npm marked | < 0.3.6 | 0.3.6 |
| org.webjars » markedvia npm marked | < 0.3.6 | 0.3.6 |
| org.webjars.npm » markedvia npm marked | < 0.3.6 | 0.3.6 |
Blast radius
12% of the dependent artifacts (2) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 14 |
| 2 hops | 12 |
Most used dependents
- net.aequologica.neo » geppaequo-tags15 usages
- net.aequologica.neo » geppaequo-web7 usages
- org.webjars.npm » openlayers4 usages
- net.aequologica.neo » quintessence-core4 usages
- net.aequologica.neo » shakuntala-doc2 usages
- net.aequologica.neo » buildhub-persist2 usages
- net.aequologica.neo » quintessence-web2 usages
- net.aequologica.neo » tuhao-core2 usages
- net.aequologica.neo » buildhub-web1 usages
- net.aequologica.neo » dagr-web1 usages
- net.aequologica.neo » parole-web1 usages
- net.aequologica.neo » tuhao-web1 usages
- org.webjars.npm » modernizr0 usages
- net.aequologica.neo » runciter0 usages
- org.scrupal » scrupal-core0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2016-10531 | nvd.nist.gov |
| Advisory | GitHub advisory GHSA-vfvf-mqq8-rwqc | github.com |
| Web | chjj/marked pull request #592 | github.com |
| Web | chjj/marked pull request #592 | github.com |
| Web | advisories/101 | npmjs.com |
