Malformed Origin header in Next.js Server Actions causes unhandled TypeError and HTTP 500
A crafted request with an invalid Origin header (e.g. 'http://' or 'null' on v15.5.x) triggers an uncaught TypeError in the Server Actions CSRF validation logic, resulting in a 500 Internal Server Error. This can be exploited for unauthenticated denial-of-service and, if improperly patched, may lead to a CSRF bypass.
