Vulnerability library
Security checkSeptember 06, 2023

ReDoS via long UserAgent header in useragent

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

High severitynpmuseragent

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 useragent are vulnerable to regular expression denial of service when an arbitrarily long User-Agent header is parsed.

Recommendation

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

  • Affected version(s): <= 2.1.12
  • Patched version(s): 2.1.13

References

Could your website be exposed too?

SmartScanner can check your website for ReDoS via long UserAgent header in useragent and gives you actionable findings to investigate.

Start a free scan

Related Issues

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