{"id":"CVE-2026-35515","published":"2026-04-07T15:06:10Z","modified":"2026-04-07T15:58:37Z","title":"@nestjs/core Improperly Neutralizes Special Elements in Output Used by a Downstream Component ('Injection')","vendor":"nestjs","product":"nest","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00259,"percentile":0.17539,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/nestjs/nest/security/advisories/GHSA-36xv-jgw5-4q75","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":3.51},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"nestjs","affectedVersions":[{"vendor":"nestjs","product":"nest","versions":["< 11.1.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-07T15:48:56.879859Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@nestjs/core","vulnerableRanges":["<11.1.18"],"patched":["11.1.18"],"from":["GHSA-36xv-jgw5-4q75"],"provenance":"source"}],"summary":{"text":"The flaw is an injection weakness in the SSE stream handling of the Nest framework's core package (@nestjs/core), where the SseStream._transform() routine writes message type and ID values into Server-Sent Events output without stripping carriage return or newline characters. An attacker who can reach the application over the network without authenticating, and who can influence message type or ID values through an upstream data source, can inject extra SSE events, spoof event types, and corrupt reconnection state, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:25Z"},"euvd":{"id":"EUVD-2026-19680","exploited":false,"provenance":"source"}}