Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.8
CVE-2017-5941: Node.js node-serialize Package Allows Malicious Code Execution
CVE-2017-5941 · published 9 years ago
Summary
Malicious data passed to the node-serialize package can allow an attacker to run unauthorized code on your system. This is a serious issue because it could be exploited by hackers to take control of your system. To protect yourself, update the node-serialize package to the latest version.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| npm | luin | node-serialize | <= 0.0.4 |
| – | node-serialize_project | node-serialize |
<= 0.0.4 cpe:2.3:a:node-serialize_project:node-serialize:*:*:*:*:*:node.js:*:* |
Original advisory text
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Untrusted data passed into the unserialize() function can be exploited to achieve arbitrary code execution by passing a Java...
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Untrusted data passed into the unserialize() function can be exploited to achieve arbitrary code execution by passing a JavaScript Object with an Immediately Invoked Function Expression (IIFE).
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-5941
- https://github.com/luin/serialize/issues/4
- https://github.com/advisories/GHSA-q4v7-4rhw-9hqm
- https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-f...
- https://www.npmjs.com/advisories/311
- http://www.securityfocus.com/bid/96225
- http://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/163222/Node.JS-Remote-Code-Execution.html
- https://nodesecurity.io/advisories/311 Third Party Advisory
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker full control (estimated)
Type
CWE-502Deserialization of Untrusted Data
Timeline
Published9 Feb 2017
Updated19 Aug 2026
First seen6 Mar 2026
Track software like this
Free during beta