Description
An issue was discovered in the serialize-to-js package 0.5.0 for Node.js. Untrusted data passed into the deserialize() function can be exploited to achieve arbitrary code execution by passing a JavaScript Object with an Immediately Invoked Function Expression (IIFE).
Remediation
References
http://www.securityfocus.com/bid/96223
https://github.com/commenthol/serialize-to-js/issues/1
https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/
Related Vulnerabilities
CVE-2019-1003053 Vulnerability in maven package org.jenkins-ci.plugins:hockeyapp
CVE-2021-32827 Vulnerability in maven package org.mock-server:mockserver-core
CVE-2018-17145 Vulnerability in npm package bcoin
CVE-2017-18239 Vulnerability in maven package com.jason-goodwin:authentikat-jwt_2.12
CVE-2020-7610 Vulnerability in maven package org.webjars.npm:bson