Vulnerabilities/

Inefficient Regular Expression Complexity in marked

Severity:
High

Description

Denial of service.

The regular expression block.def 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:

References

Related Issues

Tags:
npm
marked
Anything's wrong? Let us know Last updated on November 29, 2023

This issue is available in SmartScanner Professional

See Pricing