← Vulnerability feed

Vulnerability record · CVE-2017-5941 · published 9 February 2017

CVE-2017-5941: node-serialize unserialize() deserialization leads to remote code execution

NNode Serialize Project · Node Serialize

The node-serialize package 0.0.4 for Node.js deserializes untrusted data in its unserialize() function without validating embedded functions. An attacker can supply a serialized JavaScript object containing an Immediately Invoked Function Expression (IIFE) that executes when deserialized. This is a critical remote code execution flaw in a widely used serialization library.

9.8 CVSS 3.1 Critical EPSS 61% · top 0.9% CWE-502 · Deserialization of untrusted data
9.8CVSS 3.1 base score, v2 7.5
61%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
10References, 4 tagged exploit
17 Jun 2026Last modified by NVD

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

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

critical priorityCVSS 9.8 with network reachability, no authentication, full code execution impact, and very high EPSS probability make this an urgent fix despite the absence of KEV listing.

What it is

The node-serialize package 0.0.4 for Node.js deserializes untrusted data in its unserialize() function without validating embedded functions. An attacker can supply a serialized JavaScript object containing an Immediately Invoked Function Expression (IIFE) that executes when deserialized. This is a critical remote code execution flaw in a widely used serialization library.

Impact

An attacker gains arbitrary code execution in the Node.js process, allowing full compromise of the application and any data or credentials it can reach. With network reachability and no privileges required, this can lead to complete loss of confidentiality, integrity and availability.

Attack surface

Reached over the network wherever application code passes untrusted input (request bodies, cookies, query parameters, message payloads) into node-serialize's unserialize(). No authentication or user interaction is required per the CVSS vector AV:N/AC:L/PR:N/UI:N.

Exploitation

Public exploit write-ups and Packet Storm entries exist, and EPSS is 0.61 (99th percentile), indicating high likelihood of exploitation activity. It is not listed in CISA KEV, so no confirmed in-the-wild federal exploitation record is present.

What to do

  • Upgrade or remove node-serialize 0.0.4; the package is unmaintained, so migrate to a safe serialization format such as JSON with schema validation.
  • Never pass untrusted input to unserialize(); treat all deserialized data as hostile and validate against a strict allowlist.
  • If the library cannot be removed immediately, block or sanitize payloads containing function syntax or IIFE patterns before deserialization.
  • Restrict network exposure of Node.js services that use the library and apply least-privilege runtime permissions to limit post-exploitation impact.

Detection

  • Search code and dependency manifests for node-serialize 0.0.4 and any call to unserialize() on request-derived data.
  • Monitor Node.js process behavior for unexpected child_process, eval, or Function execution following HTTP requests.
  • Alert on request payloads containing IIFE or function-expression patterns reaching deserialization endpoints.
  • Review outbound network connections and file writes from Node.js services for signs of post-exploitation activity.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2017-5941 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-23758Ajax.NET Professional ajaxpro.2 untrusted deserialization RCEAll versions of the ajaxpro.2 package (Ajax.NET Professional) deserialize untrusted data and permit deserialization of arbitrary .NET classes. That l…KEVEPSS 83%analysed9.8CVE-2026-63077JetBrains TeamCity unauthenticated RCE via agent polling deserializationJetBrains TeamCity before 2026.1.3 and 2025.11.7 deserializes untrusted data received through the agent polling protocol, allowing unauthenticated re…KEVEPSS 9.8%analysed9.8CVE-2026-50522Microsoft SharePoint deserialization flaw allows remote code executionMicrosoft SharePoint Server deserializes untrusted data, letting an unauthorized attacker run code over the network. The flaw is remotely reachable w…KEVEPSS 3.0%analysed9.8CVE-2026-58644Microsoft SharePoint deserialization flaw allows remote code executionMicrosoft SharePoint Server deserializes untrusted data, letting an unauthenticated network attacker execute code. The flaw is rated CVSS 9.8 critica…KEVEPSS 16%analysed8.8CVE-2026-45659Microsoft SharePoint Server deserialization flaw enables remote code executionMicrosoft SharePoint Server deserializes untrusted data, letting an authenticated attacker run code over the network. The flaw is remotely reachable,…KEVEPSS 2.7%analysed9.3CVE-2026-12569PTC Windchill PDMlink and FlexPLM deserialization RCEPTC Windchill PDMlink and FlexPLM contain a deserialization of untrusted data flaw (also classified as improper input validation) that allows remote …KEVEPSS 46%analysed9.3CVE-2026-45247Mirasvit Full Page Cache Warmer for Magento 2 PHP object injection RCEMirasvit Full Page Cache Warmer for Magento 2 before 1.11.12 passes the CacheWarmer cookie to PHP's native unserialize() without restriction, allowin…KEVEPSS 2.1%analysed8.8CVE-2023-21529Microsoft Exchange Server deserialization flaw enables remote code executionCVE-2023-21529 is a deserialization of untrusted data vulnerability (CWE-502) in Microsoft Exchange Server that allows remote code execution. It carr…KEVEPSS 59%analysed

Source: NIST National Vulnerability Database (record CVE-2017-5941), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.