{"id":"CVE-2020-7660","aliases":["CVE-2020-7660","GHSA-hxcc-f52p-wc94"],"related":[],"kind":"vulnerability","state":"published","title":"Insecure serialization leading to RCE in serialize-javascript","summary":"serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function \"deleteFunctions\" within \"index.js\".","summarySource":"cvelist","descriptions":[{"lang":"en","text":"serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function \"deleteFunctions\" within \"index.js\".","source":"cvelist"},{"lang":"en","text":"serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function \"deleteFunctions\" within \"index.js\". \n\nAn object such as `{\"foo\": /1\"/, \"bar\": \"a\\\"@__R-<UID>-0__@\"}` was serialized as `{\"foo\": /1\"/, \"bar\": \"a\\/1\"/}`, which allows an attacker to escape the `bar` key. This requires the attacker to control the values of both `foo` and `bar` and guess the value of `<UID>`. The UID has a keyspace of approximately 4 billion making it a realistic network attack.","format":"markdown","source":"ghsa"},{"lang":"es","text":"serialize-javascript versiones anteriores a 3.1.0, permite a atacantes remotos inyectar código arbitrario por medio de la función \"deleteFunctions\" dentro del archivo \"index.js\".","source":"nvd"}],"published":"2020-06-01T14:50:55.000Z","modified":"2026-06-17T03:25:13.077Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"All versions prior to version 3.1.0","status":"affected"}],"product":"serialize-javascript","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.1.0"}],"ecosystem":"npm","package":"serialize-javascript","purl":"pkg:npm/serialize-javascript","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.1.0"}],"vendor":"verizon","product":"serialize-javascript","cpe":"cpe:2.3:a:verizon:serialize-javascript:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/yahoo/serialize-javascript/commit/f21a6fb3ace2353413761e79717b2d210ba6ccbd","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7660","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/yahoo/serialize-javascript","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7660","url":"https://www.cve.org/CVERecord?id=CVE-2020-7660","licence":"CVE Terms of Use","modified":"2024-08-04T09:33:20.024Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hxcc-f52p-wc94","url":"https://github.com/advisories/GHSA-hxcc-f52p-wc94","licence":"CC-BY-4.0","modified":"2023-11-08T04:04:03.301Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7660","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7660","licence":"Public domain","modified":"2026-06-17T03:25:13.077Z"}],"updatedAt":"2026-11-25T22:57:52.629Z","epss":{"score":0.02984,"percentile":0.87658,"date":"2026-12-01T12:00:22.000Z"}}