{"id":"GHSA-hxcc-f52p-wc94","summary":"Insecure serialization leading to RCE in serialize-javascript","details":"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-\u003cUID\u003e-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 `\u003cUID\u003e`. The UID has a keyspace of approximately 4 billion making it a realistic network attack.","aliases":["CVE-2020-7660"],"modified":"2023-11-01T04:53:32.104129Z","published":"2020-08-11T17:21:13Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-08-11T14:14:51Z","nvd_published_at":null,"cwe_ids":["CWE-502"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7660"},{"type":"WEB","url":"https://github.com/yahoo/serialize-javascript/commit/f21a6fb3ace2353413761e79717b2d210ba6ccbd"},{"type":"PACKAGE","url":"https://github.com/yahoo/serialize-javascript"}],"affected":[{"package":{"name":"serialize-javascript","ecosystem":"npm","purl":"pkg:npm/serialize-javascript"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-hxcc-f52p-wc94/GHSA-hxcc-f52p-wc94.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}