Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulnerability in "acorn" found in package-lock.json #74

Open
schubon opened this issue Apr 14, 2020 · 0 comments
Open

Vulnerability in "acorn" found in package-lock.json #74

schubon opened this issue Apr 14, 2020 · 0 comments

Comments

@schubon
Copy link
Member

schubon commented Apr 14, 2020

Details

GHSA-6chw-6frg-f759

moderate severity
Vulnerable versions: >= 6.0.0, < 6.4.1
Patched version: 6.4.1

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.

Remediation

Upgrade acorn to version 6.4.1 or later. For example:

"dependencies": {
  "acorn": ">=6.4.1"
}

or…

"devDependencies": {
  "acorn": ">=6.4.1"
}

Always verify the validity and compatibility of suggestions with your codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant