Advisory

GHSA-q4v7-4rhw-9hqm

Also known as: CVE-2017-5941

Summary

Code Execution through IIFE in node-serialize

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2018-07-18 18:27 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

node-serialize

npm · All systems

Affected

  • introduced 0, last affected 0.0.4 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences