CVE-2017-5941: Code Execution through IIFE in node-serialize

node-serialize Updated 02 Oct 2025

Summary

18/07/2018
No i
Critical
9.8

CVE-2017-5941: Code Execution through IIFE in node-serialize. Affects node-serialize versions < 0.0.4. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The node-serialize package is an npm package used for serializing and deserializing JavaScript objects. It provides a convenient way to convert JavaScript objects into strings and vice versa. However, certain versions of node-serialize are vulnerable to code execution if untrusted user input is passed into the unserialize() function.

Vulnerability Detail

The vulnerability in node-serialize allows an attacker to execute arbitrary code by exploiting an immediately invoked function expression (IIFE) when untrusted user input is passed into the unserialize() function. This can lead to remote code execution and potential compromise of the system. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

To mitigate the vulnerability, it is recommended to follow the measures mentioned in the 'how_to_fix' section. Implementing secure communication channels and cryptographic mechanisms can help prevent the exploitation of the vulnerability.

Conclusion

The node-serialize package is vulnerable to code execution through an IIFE when untrusted user input is passed into the unserialize() function. To mitigate the risk, it is recommended to implement secure communication channels and cryptographic mechanisms. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for node-serialize →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary code, potentially leading to remote code execution and compromise of the system.

Versions 0.0.1 to 0.0.4 of node-serialize are affected by this vulnerability.

No, there is no direct patch available. The package author recommends implementing secure communication channels and cryptographic mechanisms to mitigate the risk.

Implementing secure communication channels and cryptographic mechanisms can help mitigate the risk of exploitation.

The CVSS score of this vulnerability is 9.8, indicating its critical severity.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback