High severityPythonInsecure DeserializationMEDIUM confidence
Jsonpickle Decode
jsonpickle.decode() can reconstruct arbitrary Python objects and execute code on untrusted input (CWE-502).
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
return jsonpickle.decode(text)Passes - the safe pattern
return json.loads(text)Why it matters & how to fix it
jsonpickle.decode() can reconstruct arbitrary Python objects and execute code on untrusted input (CWE-502). Do not decode untrusted data with jsonpickle; use plain json for data interchange.
References
Rule ID integsec-python-jsonpickle-decode - 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 DeserializationNode Serialize Unserialize
- JavaScript / TypeScript - Insecure DeserializationYAML Unsafe Load
- Python - Insecure DeserializationPickle Load
- Python - Insecure DeserializationYAML Unsafe Load
- Java - Insecure DeserializationJackson Default Typing
- Java - Insecure DeserializationObject Input Stream Readobject