logo

CVE-2017-5941 node-serialize

Package

Manager: npm
Name: node-serialize
Vulnerable Version: >=0 <=0.0.4

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/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.7793 pctl0.98969

Details

Code Execution through IIFE in node-serialize 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. ```

Metadata

Created: 2018-07-18T18:27:56Z
Modified: 2021-06-23T15:41:17Z
Source: MANUAL
CWE IDs: ["CWE-502"]
Alternative ID: GHSA-q4v7-4rhw-9hqm
Finding: F096
Auto approve: 1