Every CVE Search/ Get API key

CVE-2026-35515

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

6.3 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
Low

Exploit likelihood

0.24%Up 0.2 points since Apr 8, 2026
90%50%10%1%

What each source reports

CVE List Score used 6.3

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

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.

Record
CVE-2026-35515
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:N
Weakness
CWE-74
Updated
2026-11-02
EUVDEUVD-2026-19680 6.3

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.

Record
EUVD-2026-19680
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-36xv-jgw5-4q75 6.3

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

Impact

What kind of vulnerability is it? Who is impacted?

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. Spring Framework's own security patch (6e97587) validates these same fields (id, event) for the same reason.

Actual impact:

  • Event spoofing: Attacker forges SSE events with arbitrary event: types, causing client-side EventSource.addEventListener() callbacks to fire for wrong event types.
  • Data injection: Attacker injects arbitrary data: payloads, potentially triggering XSS if the client renders SSE data as HTML without sanitization.
  • Reconnection corruption: Attacker injects id: fields, corrupting the Last-Event-ID header on reconnection, causing the client to miss or replay events.
  • Attack precondition: Requires the developer to map user-influenced data to the type or id fields of SSE messages. Direct HTTP request input does not reach these fields without developer code bridging the gap.

Patches

Has the problem been patched? What versions should users upgrade to?

Patched in @nestjs/[email protected]

Record
GHSA-36xv-jgw5-4q75
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:N
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:L
Weakness
CWE-74
Updated
2026-11-02
NVD 6.3

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.

Record
CVE-2026-35515
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:L
Weakness
CWE-74
Updated
2026-11-02
OSV 6.3

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

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.

Record
CVE-2026-35515
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:N
Weakness
CWE-74
Updated
2026-11-02
OSVGHSA-36xv-jgw5-4q75 6.3

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

Impact

What kind of vulnerability is it? Who is impacted?

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. Spring Framework's own security patch (6e97587) validates these same fields (id, event) for the same reason.

Actual impact:

  • Event spoofing: Attacker forges SSE events with arbitrary event: types, causing client-side EventSource.addEventListener() callbacks to fire for wrong event types.
  • Data injection: Attacker injects arbitrary data: payloads, potentially triggering XSS if the client renders SSE data as HTML without sanitization.
  • Reconnection corruption: Attacker injects id: fields, corrupting the Last-Event-ID header on reconnection, causing the client to miss or replay events.
  • Attack precondition: Requires the developer to map user-influenced data to the type or id fields of SSE messages. Direct HTTP request input does not reach these fields without developer code bridging the gap.

Patches

Has the problem been patched? What versions should users upgrade to?

Patched in @nestjs/[email protected]

Record
GHSA-36xv-jgw5-4q75
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:N
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:L
Weakness
CWE-74
Updated
2026-11-02
Show 6 moreShow less
OSVCLSA-2026-1792161434 No score

TuxCare security update for @nestjs/common (2 CVEs)

TuxCare rebuilt @nestjs/common to address 2 CVEs. Fixed in 10.4.22-tuxcare.1.

Record
CLSA-2026-1792161434
Updated
2026-11-02
OSVCLSA-2026-1792161496 No score

TuxCare security update for @nestjs/core (2 CVEs)

TuxCare rebuilt @nestjs/core to address 2 CVEs. Fixed in 10.4.22-tuxcare.1.

Record
CLSA-2026-1792161496
Updated
2026-11-02
OSVCLSA-2026-1792161675 No score

TuxCare security update for @nestjs/microservices (2 CVEs)

TuxCare rebuilt @nestjs/microservices to address 2 CVEs. Fixed in 10.4.22-tuxcare.1.

Record
CLSA-2026-1792161675
Updated
2026-11-02
OSVCLSA-2026-1792161752 No score

TuxCare security update for @nestjs/platform-express (2 CVEs)

TuxCare rebuilt @nestjs/platform-express to address 2 CVEs. Fixed in 10.4.22-tuxcare.1.

Record
CLSA-2026-1792161752
Updated
2026-11-02
OSVCLSA-2026-1792161909 No score

TuxCare security update for @nestjs/platform-socket.io (2 CVEs)

TuxCare rebuilt @nestjs/platform-socket.io to address 2 CVEs. Fixed in 10.4.22-tuxcare.1.

Record
CLSA-2026-1792161909
Updated
2026-11-02
OSVROOT-APP-NPM-CVE-2026-35515 No score

CVE-2026-35515 in @nestjs/core - Patched by Root

Root has patched CVE-2026-35515 in the @nestjs/core package for Root:npm. Multiple fixed versions available.

Record
ROOT-APP-NPM-CVE-2026-35515
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
@nestjs/core
npm
through 11.1.17
11.1.18
@nestjs/common
TuxCare:npm
10.4.22-tuxcare.0 up to 10.4.22-tuxcare.1, plus listed versions
10.4.22
10.4.22-tuxcare.1
@nestjs/core
TuxCare:npm
10.4.22-tuxcare.0 up to 10.4.22-tuxcare.1, plus listed versions
10.4.22
10.4.22-tuxcare.1
@nestjs/microservices
TuxCare:npm
10.4.22-tuxcare.0 up to 10.4.22-tuxcare.1, plus listed versions
10.4.22
10.4.22-tuxcare.1
@nestjs/platform-express
TuxCare:npm
10.4.22-tuxcare.0 up to 10.4.22-tuxcare.1, plus listed versions
10.4.22
10.4.22-tuxcare.1
@nestjs/platform-socket.io
TuxCare:npm
10.4.22-tuxcare.0 up to 10.4.22-tuxcare.1, plus listed versions
10.4.22
10.4.22-tuxcare.1
@nestjs/core
npm
before 11.1.18
11.1.18
@nestjs/core
Root:npm
before 10.4.20-aikido.1
10.4.20-aikido.111.1.6-aikido.110.4.22-aikido.110.3.8-aikido.210.3.8-aikido.310.4.3-aikido.111.1.9-aikido.110.2.5-aikido.19.0.7-aikido.110.3.0-aikido.110.4.20-aikido.210.4.22-aikido.211.1.6-aikido.2
@rootio/nestjs__core
Root:npm
before 10.3.8-root.io.1
10.3.8-root.io.110.4.20-root.io.111.1.6-root.io.110.4.22-root.io.110.3.8-root.io.210.3.8-root.io.310.4.3-root.io.111.1.9-root.io.111.1.6-root.io.210.2.5-root.io.19.0.7-root.io.110.3.0-root.io.110.4.20-root.io.210.4.22-root.io.2

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-35515 is a medium vulnerability (CVSS 6.3) in Nestjs Nest, published April 6, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.24%, the 15th percentile. Fixed in @nestjs/core 11.1.18.

References

MoveEnter Open