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).
CVE-2017-5941
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2018-07-18. NVD baseline CVSS 9.8; sources differ by 0.0.
- High exploitation likelihood — EPSS 61%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EPSS
- 99.0%
- KEV
- Not listed
Published
February 9, 2017
Last Modified
May 13, 2026
Advisory Details (2)
Auto-updated May 17, 2026Exploiting Node.js deserialization bug for Remote Code Execution | OpSecX
https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/Patch Availability(1)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| npm | node-serialize | — | ghsa |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| node-serialize | — | — | — |
Data Freshness Timeline
(refreshed 3× in last 7d / 26× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-02 16:54 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:05 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
Show 40 moreShow fewer
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-10 22:15 UTCEPSS rescore
- 2026-06-10 13:19 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-29 13:41 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-21 22:40 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 09:08 UTCEG score recompute
- 2026-05-20 09:08 UTCGHSA enrichment
- 2026-05-20 04:57 UTCEG score recompute
- 2026-05-20 04:57 UTCGHSA enrichment
- 2026-05-20 00:45 UTCEG score recompute
- 2026-05-20 00:45 UTCGHSA enrichment
- 2026-05-19 20:33 UTCEG score recompute
- 2026-05-19 20:33 UTCGHSA enrichment
- 2026-05-19 16:21 UTCEG score recompute
- 2026-05-19 16:21 UTCGHSA enrichment
- 2026-05-19 12:09 UTCEG score recompute
- 2026-05-19 12:09 UTCGHSA enrichment
- 2026-05-19 07:57 UTCEG score recompute
- 2026-05-19 07:57 UTCGHSA enrichment
- 2026-05-19 03:45 UTCEG score recompute
- 2026-05-19 03:45 UTCGHSA enrichment
- 2026-05-18 23:32 UTCEG score recompute
- 2026-05-18 21:30 UTCEPSS rescore
Publicly available exploits
(4 references)Working exploit code is in the public domain (1 GitHub PoC) (3 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCuartu0/nodejshellFirst seen Aug 18, 2023
Exploit de reverseshell para desserialização em NodeJs (CVE-2017-5941)
Open source ↗ - Exploit-DBEDB-50036First seen Jun 18, 2021
Node.JS - 'node-serialize' Remote Code Execution (3)
Open source ↗ - Exploit-DBEDB-49552First seen Feb 10, 2021
Node.JS - 'node-serialize' Remote Code Execution (2)
Open source ↗ - Exploit-DBEDB-45265First seen Feb 8, 2017
Node.JS - 'node-serialize' Remote Code Execution
Open source ↗
Frequently asked(5)
What is CVE-2017-5941?
When was CVE-2017-5941 disclosed?
Is CVE-2017-5941 actively exploited?
What is the CVSS score of CVE-2017-5941?
How do I remediate CVE-2017-5941?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2017-5941
Is Your Infrastructure Affected by CVE-2017-5941?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.