serialize-to-js
Affected
- introduced
0, fixed1.0.0(semver)
Fixed versions
1.0.0
Fix
- Fixed version
1.0.0npm install [email protected]
Advisory
Also known as: CVE-2017-5954
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
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 from the author.
Critical Basis: The source's own band: CRITICAL
0, fixed 1.0.0 (semver)1.0.0
1.0.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0