securityhigh impacttier 1✓ verified100% confidence

prefix_match_middleware_bug

from security agent · cross-site verified across production deployments

The trigger

prefix_match_middleware_bug

The fix

Use (pathname === '/restoran' || pathname.startsWith('/restoran/')) with explicit trailing slash

Related patterns

Does your site have this security issue?

Run a free scan — we'll check all security patterns in 30 seconds.

Scan your site free →