GitHub Advisoryadvisory · npm

GHSA-q4v7-4rhw-9hqm Code Execution through IIFE in node-serialize

CRITICAL Published 2018-07-18 Modified 2021-06-23 Official page ↗
Aliases
CVE-2017-5941
Ecosystem
npm
Packages
node-serialize
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-502
Reviewed
2020-06-16

Affected packages

• npm node-serialize: <= 0.0.4 (no fix yet)

Description

Affected versions of `node-serialize` can be abused to execute arbitrary code via an 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. ```

Related

Alias · CVE (1)

  • CVE-2017-5941 An issue was discovered in the node-serialize package 0.0.4 for Node.js. vulnerability

Weakness · CWE (1)

  • CWE-502 Deserialization of Untrusted Data weakness

References