GHSA-q4v7-4rhw-9hqm

    Dashboard / Vulnerabilities / GHSA-q4v7-4rhw-9hqm

    GHSA-q4v7-4rhw-9hqm

    Published: 18 Jul 2018Last Modified: 8 Nov 2023
    Aliases:

    Summary: Code Execution through IIFE in node-serialize

    Details: Affected versions of `node-serialize` can be abused to execute arbitrary code via an [immediately invoked function expression](https://en.wikipedia.org/wiki/Immediately-invoked_function_expression) (IIFE) if untrusted user input is passed into `unserialize()`. ## Recommendation There is no direct patch for this issue. The package author has reviewed this advisory, and provided the following recommendation: ``` To avoid the security issues, at least one of the following methods should be taken: 1. Make sure to send serialized strings internally, isolating them from potential hackers. For example, only sending the strings from backend to fronend and always using HTTPS instead of HTTP. 2. Introduce public-key cryptosystems (e.g. RSA) to ensure the strings not being tampered with. ```

    Affected packages

    Package

    Name: node-serialize

    Purl: pkg:npm/node-serialize

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    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-q4v7-4rhw-9hqm | CVE-DB