All rules →
Rules / JavaScript / TypeScript
SHIELD-JS-018

Insecure deserialization (node-serialize)

criticalJavaScript / TypeScriptCWE-502CVSS 9.8

What it detects

node-serialize's unserialize() executes embedded function bodies (`$$ND_FUNC$$`) — deserializing untrusted input is remote code execution.

How to fix

Never unserialize untrusted data. Use JSON.parse for data; if you need typed objects, validate against a schema.

Scan your repo freeFull documentation
Back to all rules
SHIELD-JS-018: Insecure deserialization (node-serialize) — Zennoxa Shield