All reports
Medium

Regular Expression Denial of Service (REDoS) in Marked

Affected versions

Affected versions
>= 1.1.1, < 2.0.0
Fixed version
2.0.0

Exploitation

CVE-2021-21306

Probability of exploitation in the next 30 days: 2.49%

FIRST EPSS · 2026-11-22

Description

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:

Links

Credits

  • Xegyn
  • calculuschild