GHSA-6chw-6frg-f759

Suggest an improvement
Source
https://github.com/advisories/GHSA-6chw-6frg-f759
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-6chw-6frg-f759/GHSA-6chw-6frg-f759.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6chw-6frg-f759
Downstream
CLSA (3)
Published
2020-04-03T21:48:38Z
Modified
2021-08-23T15:10:32Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Regular Expression Denial of Service in Acorn
Details

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. If an application processes untrusted input and passes it directly to acorn, attackers may leverage the vulnerability leading to Denial of Service.

Database specific
{
    "cwe_ids":  [
        "CWE-400"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-04-03T21:42:14Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / acorn

Package

Affected ranges

Type
SEMVER
Events
Introduced
5.5.0
Fixed
5.7.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-6chw-6frg-f759/GHSA-6chw-6frg-f759.json"

npm / acorn

Package

Affected ranges

Type
SEMVER
Events
Introduced
6.0.0
Fixed
6.4.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-6chw-6frg-f759/GHSA-6chw-6frg-f759.json"

npm / acorn

Package

Affected ranges

Type
SEMVER
Events
Introduced
7.0.0
Fixed
7.1.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-6chw-6frg-f759/GHSA-6chw-6frg-f759.json"