Vulnerability library
Security checkSeptember 13, 2023

Regular Expression Denial of Service in timespan

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

High severitynpmtimespan

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Affected versions of timespan are vulnerable to a regular expression denial of service when parsing dates.

The amplification for this vulnerability is significant, with 50,000 characters resulting in the event loop being blocked for around 10 seconds.

Recommendation

No fix is available yet. Followings are affected versions:

  • <= 2.3.0

References

Could your website be exposed too?

SmartScanner can check your website for Regular Expression Denial of Service in timespan and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 13, 2023