{"id":"CVE-2017-5954","published":"2017-02-10T06:51:00Z","modified":"2024-08-05T15:18:48Z","title":"An issue was discovered in the serialize-to-js package 0.5.0 for Node.js","vendor":null,"product":null,"tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04464,"percentile":0.91662,"provenance":"source"},"cwes":[],"references":[{"url":"https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/","tags":["x_refsource_MISC"]},{"url":"https://github.com/commenthol/serialize-to-js/issues/1","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/96223","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":18.33}]},"affected":[{"ecosystem":"npm","package":"serialize-to-js","vulnerableRanges":["<1.0.0"],"patched":["1.0.0"],"from":["GHSA-mm62-wxc8-cf7m"],"provenance":"source"}],"summary":{"text":"The serialize-to-js package version 0.5.0 for Node.js contains a flaw in its deserialize() function, which does not safely handle untrusted input. An attacker who can supply data to deserialize() can achieve arbitrary code execution by passing a JavaScript object containing an Immediately Invoked Function Expression (IIFE), provided the application deserializes attacker-controlled data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:16:40Z"},"euvd":{"id":"EUVD-2018-0297","exploited":false,"provenance":"source"}}