High severityJavaScript / TypeScriptInsecure DeserializationHIGH confidence
Node Serialize Unserialize
node-serialize unserialize() executes embedded function payloads and leads to remote code execution on attacker-controlled input.
Standards mapping
- OWASP Top 10
- A08:2021 - Software and Data Integrity Failures
- OWASP ASVS
- V5.5.3 (L1)
Vulnerable vs. safe
Flagged by this check
const obj = serialize.unserialize(req.body.payload);Passes - the safe pattern
const safeObj = JSON.parse(req.body.payload);Why it matters & how to fix it
node-serialize unserialize() executes embedded function payloads and leads to remote code execution on attacker-controlled input. Use JSON.parse for data, or a schema-validated safe deserializer.
References
Rule ID integsec-js-node-serialize-unserialize - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Insecure DeserializationYAML Unsafe Load
- Python - Insecure DeserializationJsonpickle Decode
- Python - Insecure DeserializationPickle Load
- Python - Insecure DeserializationYAML Unsafe Load
- Java - Insecure DeserializationJackson Default Typing
- Java - Insecure DeserializationObject Input Stream Readobject