QID 983385
QID 983385: Nodejs (npm) Security Update for serialize-to-js (GHSA-mm62-wxc8-cf7m)
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](https://www.npmjs.com/package/serialize-to-js#deserialize) from the author.
Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.
Solution
Customers are advised to refer to GHSA-mm62-wxc8-cf7m for updates pertaining to this vulnerability.
Vendor References
- GHSA-mm62-wxc8-cf7m -
github.com/advisories/GHSA-mm62-wxc8-cf7m
CVEs related to QID 983385
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-mm62-wxc8-cf7m | serialize-to-js |
|