Next.js, a React framework for building full-stack web applications, had a flaw in its development mode (`next dev`) where cross-site protection for internal websocket endpoints could incorrectly allow connections from contexts with a `Origin: null` header, even when `allowedDevOrigins` was configured. This could allow an attacker with access to attacker-controlled content to connect to the Hot Module Replacement (HMR) websocket channel and potentially interact with development websocket traffic. The issue only affects development mode. Applications without a configured `allowedDevOrigins` were also susceptible, allowing connections from any origin. The API endpoint `/ next/webpack-hmr` is involved in this issue. The `Origin` variable is a key factor in the vulnerability.