This page is generated from the scanner's own catalogue. A fuller explanation — how to check it yourself, and fixes for common platforms — is being written.
In short
The scanner found a byte signature of a native serialized-object format (Java, .NET BinaryFormatter, Python pickle, Ruby Marshal, or PHP serialize) inside a Set-Cookie value or session-token header. Because the client controls cookies, an attacker can forge a malicious serialized blob; on most of these stacks deserializing attacker-controlled data yields direct remote code execution.
How to fix it
Stop deserializing untrusted input; use signed and encrypted tokens (such as JWS) or a safe data format like JSON, and never deserialize raw client-supplied blobs.
Fix it with your coding agent
Prompt for Claude Code, Cursor or Codex
An Ingati scan of my website reported “Serialized object detected in a cookie or token” (finding insecure-deser/insecure_deser_cookie, severity critical). Find where this comes from in this codebase or the server configuration, fix it, and explain what you changed. The scanner's guidance: Stop deserializing untrusted input; use signed and encrypted tokens (such as JWS) or a safe data format like JSON, and never deserialize raw client-supplied blobs. Then tell me how to confirm the fix, so the next scan shows it as fixed.
How Ingati finds it
This is one of the Website security checks, and it runs on every scan. When Ingati finds the problem, your report lists it as critical, with where it was found and what the scanner saw. Later scans show it as fixed once it is gone.
Ingati checks this and thousands of other things on every scan.
Start scanning