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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-04-06T17:59:51.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-36xv-jgw5-4q75
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- nestjs nest: < 11.1.18; before 11.1.18
- @nestjs/core (npm): before 11.1.18

## Every score

- GitHub_M: 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`
- GitHub: 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`
- GitHub: CVSS:4.0 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`
- NVD: 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`

## References

- <https://github.com/nestjs/nest/security/advisories/GHSA-36xv-jgw5-4q75> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35515> (advisory)
- <https://github.com/nestjs/nest/pull/16686> (web)
- <https://github.com/nestjs/nest/commit/83558ae774a990a7916141d3abe0b6548ff3a8b2> (web)
- <https://github.com/nestjs/nest> (package)
- <https://github.com/nestjs/nest/releases/tag/v11.1.18> (web)

## Sources

- CVE List: [CVE-2026-35515](https://www.cve.org/CVERecord?id=CVE-2026-35515), CVE Terms of Use, modified 2026-04-07
- GitHub Advisory Database: [GHSA-36xv-jgw5-4q75](https://github.com/advisories/GHSA-36xv-jgw5-4q75), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-35515](https://nvd.nist.gov/vuln/detail/CVE-2026-35515), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-35515 · Whole record: https://cve.day/CVE-2026-35515.json · Rebuilt by cve.day 2026-11-25T22:59:18.121Z
