Improper Input Validation in Nest Framework for Node.js Applications
CVE-2026-35515
6.3MEDIUM
What is CVE-2026-35515?
The Nest Framework, a popular platform for creating scalable server-side applications in Node.js, contains a vulnerability in its version prior to 11.1.18. The issue lies in the SseStream._transform() method, which improperly handles newline characters in the Server-Sent Events (SSE) protocol. Due to a lack of input sanitization, an attacker can manipulate message.type and message.id fields to inject arbitrary SSE events. This can lead to spoofing event types and potentially corrupting the application's reconnection state. Developers are encouraged to upgrade to version 11.1.18 or later to mitigate this risk.
Affected Version(s)
nest < 11.1.18
