GHSA-7m7q-q53v-j47v
Regular Expression Denial of Service
- Severity
- Medium
- The publisher's own rating, not a CVSS score
- Exploit chance (EPSS)
- —
- No score published
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- —
- Not classified
- Fix
0.6.1- Upgrade marked to this version or later
Description
A flaw was found in nodejs-marked versions from 0.5.0 to before 0.6.1. Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). Input to the host variable is vulnerable when input contains parenthesis in link URIs, coupled with a high number of link tokens in a single line.
Affected versions
npm
| Package | Vulnerable | Fixed in |
|---|---|---|
| marked | >= 0.5.0, < 0.6.1 |
0.6.1 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
marked npm → 0.6.1
- npm
npm install marked@0.6.1- yarn
yarn add marked@0.6.1- pnpm
pnpm add marked@0.6.1
References
Other links
Timeline
- Published
- Withdrawn
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-6v9c-7cg6-27q7 Marked Vulnerable to OOM Denial of Service via Infinite Recursion in marked Tokenizer | High | Also affects marked |
| GHSA-p9wx-2529-fp83 Marked allows Regular Expression Denial of Service (ReDoS) attacks | Medium | Also affects marked |
| GHSA-5v2h-r2cx-5xgj Inefficient Regular Expression Complexity in marked | High | Also affects marked |
| GHSA-rrrm-qjm4-v8hf Inefficient Regular Expression Complexity in marked | High | Also affects marked |
| GHSA-4r62-v4vq-hr96 Regular Expression Denial of Service (REDoS) in Marked | High | Also affects marked |
| GHSA-ch52-vgq2-943f Regular Expression Denial of Service in marked | Low | Also affects marked |
| GHSA-9cw2-jqp5-7x39 Multiple Content Injection Vulnerabilities in marked | Medium | Also affects marked |
| GHSA-xf5p-87ch-gxw2 Marked ReDoS due to email addresses being evaluated in quadratic time | Medium | Also affects marked |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor