CVE-2026-35515
@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.
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
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 Medium
CVSS: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 Medium
CVSS: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-sideEventSource.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 theLast-Event-IDheader on reconnection, causing the client to miss or replay events. - Attack precondition: Requires the developer to map user-influenced data to the
typeoridfields 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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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-sideEventSource.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 theLast-Event-IDheader on reconnection, causing the client to miss or replay events. - Attack precondition: Requires the developer to map user-influenced data to the
typeoridfields 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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
@nestjs/corenpm |
through 11.1.17 | 11.1.18 |
@nestjs/commonTuxCare: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/coreTuxCare: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/microservicesTuxCare: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-expressTuxCare: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.ioTuxCare: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/corenpm |
before 11.1.18 | 11.1.18 |
@nestjs/coreRoot: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__coreRoot: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
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE 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
github.com/nestjs/nest/security/advisories/GHSA-36xv-jgw5-4q75
github.com/nestjs/nest/pull/16686
github.com/nestjs/nest/commit/83558ae774a990a7916141d3abe0b6548ff3a8b2
github.com/nestjs/nest/releases/tag/v11.1.18
nvd.nist.gov/vuln/detail/CVE-2026-35515
github.com/advisories/GHSA-36xv-jgw5-4q75
github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35515.json
github.com/nestjs/nest