middleware-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 11, 2026
Risk Level: SAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill provides patterns for processing untrusted HTTP request data such as headers, cookies, and URLs. It includes a mandatory evidence chain for this attack surface: ingestion occurs via
request.headersandrequest.cookiesas described inSKILL.md; boundary markers are maintained through recommendedconfig.matcherrules; capabilities are inventoried includingNextResponseredirects and header manipulation; and sanitization is addressed through explicit warnings against unsafe header forwarding and advocacy for route-level authorization. - [EXTERNAL_DOWNLOADS]: The content references the
@vercel/functionspackage for geolocation and IP address retrieval. This is a trusted official library from a well-known service (Vercel) and represents standard industry practice for the platform. - [COMMAND_EXECUTION]: Includes standard instructions for performing framework migrations using official tools such as
npx @next/codemod, which are verified developer utilities.
Audit Metadata