Vulnerabilities/

Insecure serialization leading to RCE in serialize-javascript

Severity:
High

Description

serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function “deleteFunctions” within “index.js”.

An object such as {"foo": /1"/, "bar": "a\"@__R-<UID>-0__@"} was serialized as {"foo": /1"/, "bar": "a\/1"/}, which allows an attacker to escape the bar key.

Recommendation

Update the serialize-javascript package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
serialize-javascript
Anything's wrong? Let us know Last updated on November 29, 2023

This issue is available in SmartScanner Professional

See Pricing