CVE-2017-5941
CRITICAL 9.8CVSS 3.1Code Execution through IIFE in node-serialize
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).
- Published
- 9 Feb 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-q4v7-4rhw-9hqm
- Sources
- NVDJSONOSV GHSA-q4v7-4rhw-9hqmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | node-serialize_project | node-serializecpe:2.3:a:node-serialize_project:node-serialize:*:*:*:*:*:node.js:*:* |
<= 0.0.4 | |
| OSV | npm | node-serialize | <= 0.0.4 |
References
- http://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html · Exploit, Third Party Advisory, VDB Entry, WEB
- http://packetstormsecurity.com/files/163222/Node.JS-Remote-Code-Execution.html · WEB
- http://www.securityfocus.com/bid/96225 · Third Party Advisory, VDB Entry, WEB
- https://nodesecurity.io/advisories/311 · Third Party Advisory
- https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-5941 · ADVISORY
- https://github.com/luin/serialize/issues/4 · WEB
- https://github.com/advisories/GHSA-q4v7-4rhw-9hqm · ADVISORY
- https://www.npmjs.com/advisories/311 · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 9 Feb 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Jul 2018)