CVE-2017-5954: Critical severity Serialize-to-js Project Serialize-to-js Node.js vulnerability

Published Feb 10, 2017
·
Updated

Affected versions of serialize-to-js may be vulnerable to arbitrary code execution through an Immediately Invoked Function Expression (IIFE).

Proof of Concept js var payload = "{e: (function(){ eval('console.log(exploited)') })() }" var serialize = require('serialize-to-js'); serialize.deserialize(payload);

Recommendation

Update to version 1.0.0, or later, and review this disclaimer from the author.

Other sources

An issue was discovered in the serialize-to-js package 0.5.0 for Node.js. Untrusted data passed into the deserialize() function can be exploited to achieve arbitrary code execution by passing a JavaScript Object with an Immediately Invoked Function Expression (IIFE).

Affected Software

2 affected componentsFixes available
npm/serialize-to-js<1.0.0
1.0.0
Serialize-to-js Project Serialize-to-js Node.js=0.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/serialize-to-js to a version that resolves this vulnerability.

    Fixed in 1.0.0
  2. Upgrade

    Upgrade serialize-to-js to a version that resolves this vulnerability.

    Fixed in 1.0.0

Event History

Feb 10, 2017
CVE Published
via MITRE·06:51 AM
Data Sourced
via MITRE·06:51 AM
Description
Data Sourced
via NVD·07:59 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 18, 2018
Advisory Published
06:27 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2017-5954?

CVE-2017-5954 is classified as a critical vulnerability due to its potential for arbitrary code execution.

2

How do I fix CVE-2017-5954?

To mitigate CVE-2017-5954, update the 'serialize-to-js' package to version 1.0.0 or later.

3

Which versions of 'serialize-to-js' are affected by CVE-2017-5954?

CVE-2017-5954 affects 'serialize-to-js' versions prior to 1.0.0.

4

What type of vulnerability is CVE-2017-5954?

CVE-2017-5954 is a vulnerability that allows for arbitrary code execution through an Immediately Invoked Function Expression (IIFE).

5

Can I safely use older versions of 'serialize-to-js' in my projects after CVE-2017-5954?

Using older versions of 'serialize-to-js' is not safe after CVE-2017-5954, and it is highly recommended to upgrade to avoid security risks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203