Vulnerability library
Security checkNovember 29, 2023

Inefficient Regular Expression Complexity in marked - marked

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmmarked

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Denial of service.

The regular expression inline.reflinkSearch may cause catastrophic backtracking against some strings. PoC is the following.

Who is impacted?

Anyone who runs untrusted markdown through marked and does not use a worker with a time limit.

Recommendation

Update the marked package to the latest compatible version. Followings are version details:

  • Affected version(s): < 4.0.10
  • Patched version(s): 4.0.10

References

Could your website be exposed too?

SmartScanner can check your website for Inefficient Regular Expression Complexity in marked - marked and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 29, 2023