Description
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).
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 3
- Node.JS - 'node-serialize' Remote Code Execution (3) EDB-50036 · webapps · Jun 18, 2021
- Node.JS - 'node-serialize' Remote Code Execution (2) EDB-49552 · webapps · Feb 10, 2021
- Node.JS - 'node-serialize' Remote Code Execution EDB-45265 · remote · Feb 8, 2017
GitHub 7 repositories
-
uartu0/nodejshell ★ 2 · Aug 18, 2023
Exploit de reverseshell para desserialização em NodeJs (CVE-2017-5941)
-
jimahub/scenario-c-block ★ 0 · Sep 28, 2026
Thesis scenario test (research only): Scenario C: EPSS-BLOCK path - node-serialize@0.0.4 CVE-2017-5941
-
f41k0n/RCE-NodeJs ★ 0 · Oct 12, 2025
Exploit Title: Node.JS - 'node-serialize' Remote Code Execution (2), Version: 0.0.4, CVE: CVE-2017-5941
-
kylew1004/cve-2017-5941-poc-docker-lab ★ 0 · Aug 10, 2025
-
Cr4zyD14m0nd137/Lab-for-cve-2018-15133 ★ 0 · May 10, 2023
Ejecución de exploit de deserialización con CVE-2017-5941
-
turnernator1/Node.js-CVE-2017-5941 ★ 0 · Mar 30, 2023
-
Frivolous-scholar/CVE-2017-5941-NodeJS-RCE ★ 0 · Nov 10, 2020
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | node-serialize | <= 0.0.4 | — | GHSA-q4v7-4rhw-9hqm |
References
- https://nodesecurity.io/advisories/311
- https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/
- 96225 vdb-entry
- http://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/163222/Node.JS-Remote-Code-Execution.html