VDB
Sign up
MEDIUM5.3

GHSA-4r62-v4vq-hr96

Regular Expression Denial of Service (REDoS) in Marked

Quick fix

GHSA-4r62-v4vq-hr96 — marked: upgrade to the fixed version with the command below.

npm install marked@2.0.0

Details

### Impact _What kind of vulnerability is it? Who is impacted?_

[Regular expression Denial of Service](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)

A Denial of Service attack can affect anyone who runs user generated code through `marked`.

### Patches _Has the problem been patched? What versions should users upgrade to?_

patched in v2.0.0

### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_

None.

### References _Are there any links users can visit to find out more?_

https://github.com/markedjs/marked/issues/1927 https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS

### For more information If you have any questions or comments about this advisory: * Open an issue in [marked](https://github.com/markedjs/marked/issues)

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/marked
Introduced in: 1.1.1Fixed in: 2.0.0
Fixnpm install marked@2.0.0

References