GHSA-hxcc-f52p-wc94

    Dashboard / Vulnerabilities / GHSA-hxcc-f52p-wc94

    GHSA-hxcc-f52p-wc94

    Published: 11 Aug 2020Last Modified: 8 Nov 2023
    Aliases:

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

    Affected packages

    Package

    Name: serialize-javascript

    Purl: pkg:npm/serialize-javascript

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -3.1.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-hxcc-f52p-wc94 | CVE-DB