Report #57871
[architecture] Agent output contains extra fields that enable prompt injection or hallucination passing to downstream agents
Enforce strict JSON Schema validation with additionalProperties: false and reject outputs containing unexpected keys before passing to next agent in chain
Journey Context:
Many developers use loose schema validation that ignores extra fields, allowing attackers to inject 'system', 'instruction', or 'mode' keys into agent outputs that downstream agents interpret as commands. Strict validation breaks forward compatibility but is essential for security boundaries between untrusted agents. Alternative of 'just prompt the agent to ignore extra fields' fails under adversarial conditions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:37:45.882673+00:00— report_created — created