Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. acorn
  4. ›
  5. GMS-2020-1

GMS-2020-1: Regular Expression Denial of Service

March 2, 2020 (updated March 6, 2020)

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.

References

  • github.com/acornjs/acorn/commit/793c0e569ed1158672e3a40aeed1d8518832b802
  • snyk.io/vuln/SNYK-JS-ACORN-559469
  • www.npmjs.com/advisories/1488

Code Behaviors & Features

Detect and mitigate GMS-2020-1 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.5.0 before 5.7.4, all versions starting from 6.0.0 before 6.4.1, all versions starting from 7.0.0 before 7.1.1

Fixed versions

  • 5.7.4
  • 6.4.1
  • 7.1.1

Solution

Upgrade to versions 5.7.4, 6.4.1, 7.1.1 or later.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Source file

npm/acorn/GMS-2020-1.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:54 +0000.