Aalexbit-codemod

pythonsecurity-s5135-deser-injection-mining

Mine pythonsecurity:S5135: Deserialization should not be vulnerable to injection attacks; read-only metrics with blocking severity

miningmetricspythonsecuritypythonsecurity:S5135
Public
0 executions

Run locally

npx codemod pythonsecurity-s5135-deser-injection-mining

pythonsecurity-s5135-deserialization-injection-mining

Read-only mining codemod for pythonsecurity:S5135: Deserialization should not be vulnerable to injection attacks.

Emits python_security_finding metric rows with blocking severity. Source files are never modified.

Rule

  • ID: pythonsecurity:S5135
  • Severity: blocking
  • Remediation: Avoid deserializing untrusted data with pickle, yaml.load, or marshal

Usage

bash

Development

bash

Ready to contribute?

Build your own codemod and share it with the community.