CVE-2026-35515

Medium

Description

Nest is a framework for building scalable Node.js server-side applications. Prior to 11.1.18, SseStream._transform() interpolates message.type and message.id directly into Server-Sent Events text protocol output without sanitizing newline characters (\r, \n). Since the SSE protocol treats both \r and \n as field delimiters and \n\n as event boundaries, an attacker who can influence these fields through upstream data sources can inject arbitrary SSE events, spoof event types, and corrupt reconnection state. This vulnerability is fixed in 11.1.18.

SeverityMedium
CVSS6.1
Exploit probability—
ProductNest
PublishedApr 7, 2026
First seenApr 7, 2026
Weakness typeCWE-74Injection

How to fix

Update
  • nestjs nest11.1.18 or later
  • @nestjs/core11.1.18 or later

Affected products

ProductAffected versionsFixed in
nestjs nestv < 11.1.1811.1.18
@nestjs/corenpmv < 11.1.1811.1.18

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.