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
https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/
https://github.com/commenthol/serialize-to-js/issues/1
http://www.securityfocus.com/bid/96223
Related Vulnerabilities
CVE-2021-21266 Vulnerability in maven package org.openhab.addons.bundles:org.openhab.binding.enigma2
CVE-2020-36618 Vulnerability in npm package whois
CVE-2023-0044 Vulnerability in maven package io.quarkus:quarkus-vertx-http
CVE-2022-24279 Vulnerability in npm package madlib-object-utils
CVE-2022-29247 Vulnerability in maven package org.webjars.npm:electron