Vulnerability library
Security checkJanuary 09, 2023

Regular Expression Denial of Service in Acorn

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

High severitynpmacorn

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 acorn are vulnerable to Regular Expression Denial of Service. A regex in the form of /[x-\ud800]/u causes the parser to enter an infinite loop. The string is not valid UTF16 which usually results in it being sanitized before reaching the parser.

Recommendation

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

  • Affected version(s): **>= 5.5.0, < 5.7.4 >= 7.0.0, < 7.1.1 >= 6.0.0, < 6.4.1**
  • Patched version(s): **5.7.4 7.1.1 6.4.1**

References

Could your website be exposed too?

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

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 09, 2023