Advisory

GHSA-4r62-v4vq-hr96

Also known as: CVE-2021-21306

Summary

Regular Expression Denial of Service (REDoS) in Marked

Details

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

Regular expression Denial of Service

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:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-02-08 21:17 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

marked

npm · All systems

Affected

  • introduced 1.1.1, fixed 2.0.0 (semver)

Fixed versions

2.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences