Security mailing lists by PureSourceCode

GHSA-6chw-6frg-f759

HIGH 7.5CVSS 3.1

Regular Expression Denial of Service in Acorn

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.

Published
3 Apr 2020
Last modified
23 Aug 2021
Weakness
CWE-400
Sources
OSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm acorn >= 5.5.0, < 5.7.4 5.7.4
OSV npm acorn >= 6.0.0, < 6.4.1 6.4.1
OSV npm acorn >= 7.0.0, < 7.1.1 7.1.1

References

History

  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Apr 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.