All rules →
Rules / C#
SHIELD-CSHARP-007

Insecure deserialization via Json.NET TypeNameHandling

criticalC#CWE-502CVSS 9.8

What it detects

Json.NET is configured with TypeNameHandling.All or Auto, enabling type-confusion deserialization attacks.

How to fix

Set TypeNameHandling to None or use a strict SerializationBinder that allowlists safe types.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CSHARP-007: Insecure deserialization via Json.NET TypeNameHandling — Zennoxa Shield