CVE-2026-27977: Next.js: null origin can bypass dev HMR websocket CSRF checks
(updated )
In next dev, cross-site protection for internal websocket endpoints could treat Origin: null as a bypass case even if allowedDevOrigins is configured, allowing privacy-sensitive/opaque contexts (for example sandboxed documents) to connect unexpectedly.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-27977 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →