Critical
Security advisory
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).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-5954
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:56 UTC · Revision 1
Source evidence
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).
osv:CVE-2017-5954
Complete source record
{
"id": "91c9df6b0b05b61fe407db87e6f264a96c88d9df7d3c803626bf1f0b2c3de5f5",
"url": "https://osv.dev/vulnerability/CVE-2017-5954",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-5954",
"summary": "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).",
"evidence": "osv:CVE-2017-5954",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2017-5954",
"aliases": [
"CVE-2017-5954",
"GHSA-mm62-wxc8-cf7m"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/commenthol/serialize-to-js",
"type": "GIT",
"events": [
{
"introduced": "a1e8140ed1a07013f644b5b76025f4eaab7fb9d8"
},
{
"last_affected": "a1e8140ed1a07013f644b5b76025f4eaab7fb9d8"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:serialize-to-js_project:serialize-to-js:0.5.0:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0.5.0"
},
{
"last_affected": "0.5.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"0.5.0",
"v0.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-5954.json"
}
}
],
"modified": "2026-10-20T10:49:02.528094661Z",
"provider": "osv",
"references": [
"https://github.com/commenthol/serialize-to-js/issues/1",
"https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2017-5954",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 380433,
"published_at": "2017-02-10T07:59:00.31+00:00"
}