Skip to content

Regular Expression Denial of Service in parsejson

high severity GitHub Reviewed Published Jul 24, 2018 • Updated Jan 8, 2021

Package

npm parsejson (npm)

Affected versions

<= 0.0.3

Patched versions

None

Description

Affected versions of parsejson are vulnerable to a regular expression denial of service when parsing untrusted user input.

Recommendation

The parsejson package has not been functionally updated since it was initially released.

Additionally, it provides functionality which is natively included in Node.js, and therefore the native JSON.parse() should be used, for both performance and security reasons.

References

CVE ID

CVE-2017-16113