CVE-2026-35515 @nestjs/core Improperly Neutralizes Special Elements in Output Used by a Downstream Component ('Injection')

Medium 6.3 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-35515?

CVE-2026-35515 is a medium-severity vulnerability in nestjs nest, published on 7 Apr 2026.

Official 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.

Weakness: CWE-74

Which versions are affected by CVE-2026-35515?

2 open source packages ship an affected version, including @nestjs/core. It affects 1 product.

PackageAffectedFixed in
@nestjs/core npmAll versions11.1.18
@nestjs/core npmAll versions11.1.18

Products include Nestjs Nest.

How do I fix CVE-2026-35515?

Upgrade @nestjs/core to 11.1.18 or later.

Is CVE-2026-35515 being exploited?

There is no known exploitation of CVE-2026-35515 in the wild and no public exploit code.

Sources

Also known as GHSA-36xv-jgw5-4q75, ROOT-APP-NPM-CVE-2026-35515.

Is CVE-2026-35515 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free