undici vulnerabilities

An HTTP/1.1 client, written from scratch for Node.js

Registry
npm
Latest
8.12.3
License
MIT

46 known advisories

The latest version, 8.12.3, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install undici@8.12.3

Security advisories for undici

  • MediumGHSA-pmjh-fq2x-6v4x29 Sept 2026

    undici vulnerable to Denial of Service via orphaned RetryHandler response body

    Affected
    >=7.11.0 <7.29.1 · >=8.0.0 <8.10.2
    Fixed in
    7.29.1, 8.10.2
  • LowGHSA-r53p-7pc4-xj5r29 Sept 2026

    undici vulnerable to downstream response splitting via retry interceptor

    Affected
    <6.28.1 · >=7.0.0 <7.29.1 · >=8.0.0 <8.10.2
    Fixed in
    6.28.1, 7.29.1, 8.10.2
  • HighGHSA-rfgv-xxqx-mfg529 Sept 2026

    undici vulnerable to Denial of Service via unrequested WebSocket subprotocol

    Affected
    >=6.7.0 <6.28.1 · >=7.0.0 <7.29.1 · >=8.0.0 <8.10.2
    Fixed in
    6.28.1, 7.29.1, 8.10.2
  • MediumGHSA-3xpg-4rpp-hhhm29 Sept 2026

    undici vulnerable to Denial of Service via unbounded decompression of compressed responses

    Affected
    >=7.15.0 <7.29.1 · >=8.0.0 <8.10.2
    Fixed in
    7.29.1, 8.10.2
  • MediumGHSA-2jfj-6hjv-fm6j29 Sept 2026

    undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches

    Affected
    >=7.0.0 <7.29.1 · >=8.0.0 <8.10.2
    Fixed in
    7.29.1, 8.10.2
  • LowGHSA-2gqq-gqf2-x96829 Sept 2026

    undici vulnerable to response truncation via oversized chunked responses in the dump interceptor

    Affected
    >=7.1.0 <7.29.1 · >=8.0.0 <8.10.2
    Fixed in
    7.29.1, 8.10.2
  • HighGHSA-w293-vg96-wgc329 Sept 2026

    undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPool

    Affected
    >=7.24.1 <7.29.1 · >=8.0.0 <8.10.2
    Fixed in
    7.29.1, 8.10.2
  • LowGHSA-8436-99hf-9mmv29 Sept 2026

    undici vulnerable to caching and replay of unsafe HTTP method responses

    Affected
    >=7.0.0 <7.29.1 · >=8.0.0 <8.10.2
    Fixed in
    7.29.1, 8.10.2
  • HighGHSA-vp8m-p9jh-q5pm29 Sept 2026

    undici vulnerable to cross-origin cache poisoning via missing origin isolation in interceptors

    Affected
    >=8.10.0 <8.10.2
    Fixed in
    8.10.2
  • MediumGHSA-rx4f-c7p8-82vq29 Sept 2026

    undici vulnerable to Denial of Service via WebSocketStream unclean close

    Affected
    >=7.0.0 <7.29.1 · >=8.0.0 <8.10.2
    Fixed in
    7.29.1, 8.10.2
  • MediumGHSA-3wwx-pv8p-q78v28 Sept 2026

    undici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompression

    Affected
    >=6.25.0 <6.28.1 · >=7.28.0 <7.29.1 · >=8.1.0 <8.10.2
    Fixed in
    6.28.1, 7.29.1, 8.10.2
  • MediumGHSA-m8rv-5g2x-5cg53 Aug 2026

    undici vulnerable to CRLF Injection via blob-like body 'type' property

    Affected
    <6.28.0 · >=7.0.0 <7.29.0 · >=8.0.0 <8.9.0
    Fixed in
    6.28.0, 7.29.0, 8.9.0
  • MediumGHSA-jr45-8vmc-qm543 Aug 2026

    undici vulnerable to cross-user information disclosure via whitespace around equals in Cache-Control directives

    Affected
    >=7.0.0 <7.29.0 · >=8.0.0 <8.9.0
    Fixed in
    7.29.0, 8.9.0
  • MediumGHSA-v3r7-h72x-cjcm3 Aug 2026

    undici vulnerable to cookie attribute injection via unsanitized domain and unparsed setCookie fields

    Affected
    <6.28.0 · >=7.0.0 <7.29.0 · >=8.0.0 <8.9.0
    Fixed in
    6.28.0, 7.29.0, 8.9.0
  • MediumGHSA-8xcm-r25x-g5243 Aug 2026

    undici vulnerable to downstream response desynchronization via retry interceptor

    Affected
    <6.28.0 · >=7.0.0 <7.29.0 · >=8.0.0 <8.9.0
    Fixed in
    6.28.0, 7.29.0, 8.9.0
  • HighGHSA-4cwx-7wf7-32723 Aug 2026

    undici vulnerable to cross-user information disclosure and parse-time crash via degenerate private cache directives

    Affected
    >=7.0.0 <7.29.0 · >=8.0.0 <8.9.0
    Fixed in
    7.29.0, 8.9.0
  • LowGHSA-g8m3-5g58-fq7m19 Jun 2026

    undici vulnerable to Set-Cookie SameSite attribute downgrade via permissive substring matching

    Affected
    <6.27.0 · >=7.0.0 <7.28.0 · >=8.0.0 <8.5.0
    Fixed in
    6.27.0, 7.28.0, 8.5.0
  • HighGHSA-vxpw-j846-p89q19 Jun 2026

    undici WebSocket client vulnerable to denial of service via fragment count bypass

    Affected
    <6.27.0 · >=7.0.0 <7.28.0 · >=8.0.0 <8.5.0
    Fixed in
    6.27.0, 7.28.0, 8.5.0
  • MediumGHSA-p88m-4jfj-68fv19 Jun 2026

    undici vulnerable to HTTP header injection via Set-Cookie percent-decoding

    Affected
    <6.27.0 · >=7.0.0 <7.28.0 · >=8.0.0 <8.5.0
    Fixed in
    6.27.0, 7.28.0, 8.5.0
  • HighGHSA-hm92-r4w5-c3mj19 Jun 2026

    undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse

    Affected
    >=7.23.0 <7.28.0 · >=8.0.0 <8.2.0
    Fixed in
    7.28.0, 8.2.0
  • LowGHSA-35p6-xmwp-9g5219 Jun 2026

    undici vulnerable to HTTP response queue poisoning via keep-alive socket reuse

    Affected
    <6.27.0 · >=7.0.0 <7.28.0 · >=8.0.0 <8.5.0
    Fixed in
    6.27.0, 7.28.0, 8.5.0
  • HighGHSA-vmh5-mc38-953g18 Jun 2026

    undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent

    Affected
    >=7.23.0 <7.28.0 · >=8.0.0 <8.5.0
    Fixed in
    7.28.0, 8.5.0
  • MediumGHSA-pr7r-676h-xcf618 Jun 2026

    undici vulnerable to cross-user information disclosure via shared cache whitespace bypass

    Affected
    >=7.0.0 <7.28.0 · >=8.0.0 <8.5.0
    Fixed in
    7.28.0, 8.5.0
  • HighGHSA-38rv-x7px-6hhq18 Jun 2026

    undici WebSocket client vulnerable to denial of service via cumulative fragment bypass

    Affected
    >=8.0.0 <8.5.0
    Fixed in
    8.5.0
  • HighGHSA-vrm6-8vpv-qv8q13 Mar 2026

    Undici has Unbounded Memory Consumption in WebSocket permessage-deflate Decompression

    Affected
    <6.24.0 · >=7.0.0 <7.24.0
    Fixed in
    6.24.0, 7.24.0
  • HighGHSA-v9p9-hfj2-hcw813 Mar 2026

    Undici has Unhandled Exception in WebSocket Client Due to Invalid server_max_window_bits Validation

    Affected
    <6.24.0 · >=7.0.0 <7.24.0
    Fixed in
    6.24.0, 7.24.0
  • MediumGHSA-4992-7rv2-5pvq13 Mar 2026

    Undici has CRLF Injection in undici via `upgrade` option

    Affected
    <6.24.0 · >=7.0.0 <7.24.0
    Fixed in
    6.24.0, 7.24.0
  • MediumGHSA-phc3-fgpg-7m6h13 Mar 2026

    Undici has Unbounded Memory Consumption in its DeduplicationHandler via Response Buffering that leads to DoS

    Affected
    >=7.17.0 <7.24.0
    Fixed in
    7.24.0
  • HighGHSA-f269-vfmq-vjvj13 Mar 2026

    Undici: Malicious WebSocket 64-bit length overflows parser and crashes the client

    Affected
    >=6.0.0 <6.24.0 · >=7.0.0 <7.24.0
    Fixed in
    6.24.0, 7.24.0
  • MediumGHSA-2mjp-6q6p-2qxm13 Mar 2026

    Undici has an HTTP Request/Response Smuggling issue

    Affected
    <6.24.0 · >=7.0.0 <7.24.0
    Fixed in
    6.24.0, 7.24.0
  • MediumGHSA-g9mf-h72j-4rw914 Jan 2026

    Undici has an unbounded decompression chain in HTTP responses on Node.js Fetch API via Content-Encoding leads to resource exhaustion

    Affected
    >=7.0.0 <7.18.2 · <6.23.0
    Fixed in
    6.23.0, 7.18.2
  • LowGHSA-cxrh-j4jr-qwg315 May 2025

    undici Denial of Service attack via bad certificate data

    Affected
    <5.29.0 · >=6.0.0 <6.21.2 · >=7.0.0 <7.5.0
    Fixed in
    5.29.0, 6.21.2, 7.5.0
  • MediumGHSA-c76h-2ccp-497521 Jan 2025

    Use of Insufficiently Random Values in undici

    Affected
    >=4.5.0 <5.28.5 · >=6.0.0 <6.21.1 · >=7.0.0 <7.2.3
    Fixed in
    5.28.5, 6.21.1, 7.2.3
  • LowGHSA-3g92-w8c5-73pq9 Jul 2024

    Undici vulnerable to data leak when using response.arrayBuffer()

    Affected
    >=6.14.0 <6.19.2
    Fixed in
    6.19.2
  • LowGHSA-9qxr-qj54-h6724 Apr 2024

    Undici's fetch with integrity option is too lax when algorithm is specified but hash value is in incorrect

    Affected
    <5.28.4 · >=6.0.0 <6.11.1
    Fixed in
    5.28.4, 6.11.1
  • LowGHSA-m4v8-wqvr-p9f74 Apr 2024

    Undici's Proxy-Authorization header not cleared on cross-origin redirect for dispatch, request, stream, pipeline

    Affected
    <5.28.4 · >=6.0.0 <6.11.1
    Fixed in
    5.28.4, 6.11.1
  • LowGHSA-3787-6prv-h9w316 Feb 2024

    Undici proxy-authorization header not cleared on cross-origin redirect in fetch

    Affected
    <5.28.3 · >=6.0.0 <6.6.1
    Fixed in
    5.28.3, 6.6.1
  • MediumGHSA-9f24-jqhm-jfcw16 Feb 2024

    fetch(url) leads to a memory leak in undici

    Affected
    >=6.0.0 <6.6.1
    Fixed in
    6.6.1
  • LowGHSA-wqq4-5wpv-mx2g16 Oct 2023

    Undici's cookie header not cleared on cross-origin redirect in fetch

    Affected
    <5.26.2
    Fixed in
    5.26.2
  • MediumGHSA-5r9g-qh6m-jxff16 Feb 2023

    CRLF Injection in Nodejs ‘undici’ via host

    Affected
    >=2.0.0 <5.19.1
    Fixed in
    5.19.1
  • HighGHSA-r6ch-mqf9-qc9w16 Feb 2023

    Regular Expression Denial of Service in Headers

    Affected
    <5.19.1
    Fixed in
    5.19.1
  • MediumGHSA-f772-66g8-q5h318 Aug 2022

    Nodejs ‘undici’ vulnerable to CRLF Injection via Content-Type

    Affected
    <5.8.2
    Fixed in
    5.8.2
  • MediumGHSA-8qr4-xgw6-wmr318 Aug 2022

    `undici.request` vulnerable to SSRF using absolute URL on `pathname`

    Affected
    <5.8.2
    Fixed in
    5.8.2
  • LowGHSA-q768-x9m6-m9qp21 Jul 2022

    undici before v5.8.0 vulnerable to uncleared cookies on cross-host / cross-origin redirect

    Affected
    <5.8.0
    Fixed in
    5.8.0
  • MediumGHSA-3cvr-822r-rqcc21 Jul 2022

    undici before v5.8.0 vulnerable to CRLF injection in request headers

    Affected
    <5.8.0
    Fixed in
    5.8.0
  • HighGHSA-pgw7-wx7w-2w3317 Jun 2022

    ProxyAgent vulnerable to MITM

    Affected
    >=4.8.2 <5.5.1
    Fixed in
    5.5.1

Which of your client projects still run an old undici?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.