CVE-2026-25938: Express Auth Bypass Via Referer Header

Authentication / authorization decision based on the HTTP `Referer` header. The Referer header is set by the client and is trivially spoofable, so calling `next()` (or otherwise granting access) based on its contents bypasses any real authentication check (CWE-290 / CWE-306). Verify a cryptographic credential (JWT, API key, signed session) instead of trustin

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-25938-express-auth-bypass-via-referer-header --engine opengrep

Description

Authentication / authorization decision based on the HTTP `Referer` header. The Referer header is set by the client and is trivially spoofable, so calling `next()` (or otherwise granting access) based on its contents bypasses any real authentication check (CWE-290 / CWE-306). Verify a cryptographic credential (JWT, API key, signed session) instead of trustin