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-2022-24066 Vulnerability in npm package simple-git
CVE-2016-10006 Vulnerability in maven package org.owasp.antisamy:antisamy
CVE-2020-7689 Vulnerability in npm package bcrypt
CVE-2018-1000644 Vulnerability in maven package org.eclipse.rdf4j:rdf4j-rio-trix
CVE-2022-31170 Vulnerability in npm package @openzeppelin/contracts