GHSA-mm62-wxc8-cf7m

    Dashboard / Vulnerabilities / GHSA-mm62-wxc8-cf7m

    GHSA-mm62-wxc8-cf7m

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

    Summary: Code Execution Through IIFE in serialize-to-js

    Details: Affected versions of `serialize-to-js` may be vulnerable to arbitrary code execution through an Immediately Invoked Function Expression (IIFE). ## Proof of Concept ```js var payload = "{e: (function(){ eval('console.log(`exploited`)') })() }" var serialize = require('serialize-to-js'); serialize.deserialize(payload); ``` ## Recommendation Update to version 1.0.0, or later, and review [this disclaimer](https://www.npmjs.com/package/serialize-to-js#deserialize) from the author.

    Affected packages

    Package

    Name: serialize-to-js

    Purl: pkg:npm/serialize-to-js

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.0.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-mm62-wxc8-cf7m | CVE-DB