OWASP ZAP (Medium / Verify) · ZAP-40040
OWASP ZAP-40040 (CORS Misconfiguration) for Next.js App Router
Triage and verify ZAP rule 40040 (CORS Misconfiguration) inside Next.js App Router pipelines without flooding SARIF 2.1.0 reports with header noise.
Coverage ledger tracking key
zap:40040::context:nextjs
ZAP plugin 40040 (Medium / Verify)
Risk boundary
// Raw ZAP alert 40040 on Next.js App Router
// Treat alert as needs_validation or Hardening Note until HTTP pair or handler code confirms risk.Hardened guard
// Clean triage policy (Medium / Verify)
// 1. Route header-only gaps to hardening-notes.md
// 2. Verify substantive exploit alerts via zap_to_findings + finding-verifier.Verification steps
- 01Check alert 40040 against rules.tsv and Next.js App Router staging routes.
- 02Inspect the actual server handler or SPA router to rule out soft-404 phantoms.
- 03Export confirmed or valid leads cleanly into findings.json and SARIF 2.1.0.