Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2017-5941 EUVD-2018-0309GHSA-q4v7-4rhw-9hqm

Code Execution through IIFE in node-serialize

Published Feb 9, 2017 · Updated Aug 5, 2024 · Assigned by mitre

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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 3

GitHub 7 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm node-serialize <= 0.0.4 — GHSA-q4v7-4rhw-9hqm

References