CVE-2017-5954 – serialize-to-js
Package
Manager: npm
Name: serialize-to-js
Vulnerable Version: >=0 <1.0.0
Severity
Level: Critical
CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00353 pctl0.56915
Details
Code Execution Through IIFE in serialize-to-js 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.
Metadata
Created: 2018-07-18T18:27:41Z
Modified: 2023-09-13T19:43:49Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/07/GHSA-mm62-wxc8-cf7m/GHSA-mm62-wxc8-cf7m.json
CWE IDs: ["CWE-502"]
Alternative ID: GHSA-mm62-wxc8-cf7m
Finding: F096
Auto approve: 1