Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWh4Y2MtZjUycC13Yzk0

Insecure serialization leading to RCE in serialize-javascript

serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function "deleteFunctions" within "index.js".

An 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.

Permalink: https://github.com/advisories/GHSA-hxcc-f52p-wc94
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWh4Y2MtZjUycC13Yzk0
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 3 years ago
Updated: 5 months ago


CVSS Score: 8.1
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Identifiers: GHSA-hxcc-f52p-wc94, CVE-2020-7660
References: Repository: https://github.com/yahoo/serialize-javascript
Blast Radius: 49.4

Affected Packages

npm:serialize-javascript
Dependent packages: 2,603
Dependent repositories: 1,239,571
Downloads: 160,725,754 last month
Affected Version Ranges: < 3.1.0
Fixed in: 3.1.0
All affected versions: 1.0.0, 1.1.2, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 3.0.0
All unaffected versions: 3.1.0, 4.0.0, 5.0.0, 5.0.1, 6.0.0, 6.0.1, 6.0.2