CVE-2026-59160: Nextjs Custom Server Unrestricted Bind

An embedded or custom Next.js server is started with 'listen()' without specifying a host/hostname to bind to (such as 'localhost' or '127.0.0.1'). By default, Node.js binds to all network interfaces (0.0.0.0 / ::), which may expose internal endpoints and task execution capabilities across the local network.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-59160-nextjs-custom-server-unrestricted-bind --engine opengrep

Description

An embedded or custom Next.js server is started with 'listen()' without specifying a host/hostname to bind to (such as 'localhost' or '127.0.0.1'). By default, Node.js binds to all network interfaces (0.0.0.0 / ::), which may expose internal endpoints and task execution capabilities across the local network.