CVE-2017-5954
CRITICAL 9.8CVSS 3.0Code Execution Through IIFE in serialize-to-js
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).
- Published
- 10 Feb 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-mm62-wxc8-cf7m
- Sources
- NVDJSONOSV GHSA-mm62-wxc8-cf7mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | serialize-to-js_project | serialize-to-jscpe:2.3:a:serialize-to-js_project:serialize-to-js:0.5.0:*:*:*:*:node.js:*:* |
= 0.5.0 | |
| OSV | npm | serialize-to-js | < 1.0.0 | 1.0.0 |
References
- http://www.securityfocus.com/bid/96223 · Third Party Advisory, VDB Entry, WEB
- https://github.com/commenthol/serialize-to-js/issues/1 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-5954 · ADVISORY
- https://github.com/commenthol/serialize-to-js/commit/1cd433960e5b9db4c0b537afb28366198a319429 · WEB
- https://github.com/advisories/GHSA-mm62-wxc8-cf7m · ADVISORY
- https://github.com/commenthol/serialize-to-js · PACKAGE
- https://www.npmjs.com/advisories/313 · WEB
- https://www.npmjs.com/package/serialize-to-js#deserialize · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 10 Feb 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Jul 2018)