Vulnerability library
Security checkNovember 29, 2023

Insecure serialization leading to RCE in serialize-javascript

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): < 3.1.0
  • Patched version(s): 3.1.0

References

Could your website be exposed too?

SmartScanner can check your website for Insecure serialization leading to RCE in serialize-javascript and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 29, 2023