Missing User Warnings
Medium
- Confidence
- 88% confidence
- Finding
- The example reads a cookie token and returns it in a JSON response, which demonstrates a pattern that can expose session or authentication secrets to client-side code or downstream consumers. In documentation for Next.js route handlers, readers may copy this example directly, so showing a secret-bearing cookie reflected in the response without a warning normalizes an unsafe practice.
