CVE-2018-25110
Marked allows Regular Expression Denial of Service (ReDoS) attacks
Description
Marked prior to version 0.3.17 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to catastrophic backtracking in several regular expressions used for parsing HTML tags and markdown links. An attacker can exploit this vulnerability by providing specially crafted markdown input, such as deeply nested or repetitively structured brackets or tag attributes, which cause the parser to hang and lead to a Denial of Service.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » markedvia npm marked | < 0.3.17 | 0.3.17 |
| org.webjars » markedvia npm marked | < 0.3.17 | 0.3.17 |
| org.webjars.npm » markedvia npm marked | < 0.3.17 | 0.3.17 |
Blast radius
57% of the dependent artifacts (15) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 25 |
| 2 hops | 32 |
| 3 hops | 6 |
Most used dependents
- net.aequologica.neo » geppaequo-tags15 usages
- com.graphql-java » graphiql-spring-boot-starter11 usages
- net.aequologica.neo » geppaequo-web7 usages
- org.webjars.npm » openlayers4 usages
- org.webjars.npm » graphiql4 usages
- net.aequologica.neo » quintessence-core4 usages
- net.aequologica.neo » buildhub-persist2 usages
- net.aequologica.neo » dagr-vebchar2 usages
- net.aequologica.neo » quintessence-web2 usages
- net.aequologica.neo » shakuntala-doc2 usages
- net.aequologica.neo » tuhao-core2 usages
- net.aequologica.neo » buildhub-vebchar2 usages
- com.graphql-java » graphiql-spring-boot-autoconfigure1 usages
- net.aequologica.neo » dagr-web1 usages
- net.aequologica.neo » buildhub-web1 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-2018-25110 | nvd.nist.gov |
| Package | markedjs/marked | github.com |
| Web | markedjs/marked issue #1070 | github.com |
| Web | markedjs/marked pull request #1083 | github.com |
| Web | markedjs/marked commit 20bfc10 | github.com |
| Web | Checkmarx/Vulnerabilities-Proofs-of-Concept CVE-2018-25110 | github.com |
