Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The 'Good' Template Injection example claims to validate input first, but it validates an unrelated variable (`role`) and still passes untrusted `data` directly to `t.Execute`. In a security guidance file, this is dangerous because readers may copy the example and believe it is a safe pattern, leading to misuse of untrusted template data and weakened output-handling practices.
