org.mvnpm:undici@6.28.0

  • latest version

    8.12.3

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:undici package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Uncaught Exception

    org.mvnpm:undici is an An HTTP/1.1 client, written from scratch for Node.js

    Affected versions of this package are vulnerable to Uncaught Exception via excessive Content-Encoding headers in an HTTP response processed by httpNetworkFetch in lib/web/fetch/index.js. A server returning a response with more than five content-encoding layers triggers an error path that previously called reject() before the response body Readable stream was initialised, leaving the stream in an inconsistent state and crashing the client process.

    How to fix Uncaught Exception?

    Upgrade org.mvnpm:undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

    [6.23.0,6.29.1)[7.18.2,7.30.1)[8.0.0,8.12.2)
    • H
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:undici is an An HTTP/1.1 client, written from scratch for Node.js

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the EventSourceStream transform in lib/web/eventsource/eventsource-stream.js, where the maxEventSize limit is only enforced inside parseLine(), which is only invoked when a line terminator (CR or LF) is encountered. A server can stream a data: field (or any field) that never contains a line terminator, causing the client to buffer the response body without bound and driving the process toward memory exhaustion.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

    [6.21.2,6.29.1)[7.6.0,7.30.1)[8.0.0,8.12.2)
    • H
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:undici is an An HTTP/1.1 client, written from scratch for Node.js

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via unbounded automatic PONG write queuing in the WebSocket ByteParser receiver. A remote attacker can send a flood of PING control frames over a standard WebSocket connection, causing the outbound write queue to grow without bound because each inbound PING triggers an automatic PONG reply that is enqueued regardless of socket backpressure, exhausting memory and crashing the process.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

    [5.28.2,6.29.1)[7.6.0,7.30.1)[8.0.0,8.12.2)
    • H
    Uncaught Exception

    org.mvnpm:undici is an An HTTP/1.1 client, written from scratch for Node.js

    Affected versions of this package are vulnerable to Uncaught Exception via unhandled ERR_TLS_CERT_ALTNAME_INVALID errors in onHttpSocketError, onHttp2SessionError, and onHttp2SocketError. When a TLS connection is established and the server's certificate fails Subject Alternative Name validation post-connect, the error propagates and triggers a failed assert call, crashing the process. An attacker who can cause the client to connect to a server presenting an invalid TLS certificate can exploit this to crash the Node.js process.

    How to fix Uncaught Exception?

    Upgrade org.mvnpm:undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

    [5.28.2,6.29.1)[7.6.0,7.30.1)[8.0.0,8.12.2)
    • C
    Improper Certificate Validation

    org.mvnpm:undici is an An HTTP/1.1 client, written from scratch for Node.js

    Affected versions of this package are vulnerable to Improper Certificate Validation via the Agent constructor in lib/dispatcher/agent.js, where TLS options passed as the tls parameter are silently dropped and never stored in kOptions. Because the tls field is not destructured and forwarded to the internal options object, any TLS configuration supplied by the caller - including custom CA certificates, certificate pinning, or hostname verification overrides - is ignored when connections are established. An attacker positioned on the network can exploit the resulting absence of TLS constraints to perform a MitM attack, intercepting or modifying HTTPS traffic that the caller believed was protected by the supplied TLS settings.

    How to fix Improper Certificate Validation?

    Upgrade org.mvnpm:undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

    [5.28.2,6.29.1)[7.6.0,7.30.1)[8.0.0,8.12.2)
    • H
    Uncaught Exception

    org.mvnpm:undici is an An HTTP/1.1 client, written from scratch for Node.js

    Affected versions of this package are vulnerable to Uncaught Exception in lib/web/websocket/permessage-deflate.js, whose cleanup calls removeAllListeners() on the zlib InflateRaw object, removing the error listener while the stream is still active. An attacker can crash the Node.js process, and repeat the crash on every reconnect to form a crash loop, by sending a permessage-deflate WebSocket message of roughly 130 KB that exceeds the decompressed-payload size limit and contains a malformed DEFLATE block, so the resulting Z_DATA_ERROR has no listener. This requires the application to use undici's WebSocket client or Node's bundled globalThis.WebSocket against an attacker-controlled or compromised WebSocket server.

    How to fix Uncaught Exception?

    Upgrade org.mvnpm:undici to version 6.28.1, 7.29.1, 8.10.2 or higher.

    [6.25.0,6.28.1)[7.28.0,7.29.1)[8.1.0,8.10.2)
    • M
    HTTP Request Smuggling

    org.mvnpm:undici is an An HTTP/1.1 client, written from scratch for Node.js

    Affected versions of this package are vulnerable to HTTP Request Smuggling in the interceptors.retry() interceptor, which resumes a partial response and appends the resumed bytes to an already-delivered body, so the delivered body can exceed the declared Content-Length. An attacker can inject bytes beyond the Content-Length into a forwarded response and split the downstream HTTP response by running an upstream that returns a partial response and then resumes it with a Range request, for example a 404 with Content-Length: 2 that sends one byte, closes, then appends 206 Partial Content bytes. This requires the application to enable interceptors.retry(), an untrusted or faulty upstream, and a downstream proxy or gateway that forwards the body without recalculating framing.

    How to fix HTTP Request Smuggling?

    Upgrade org.mvnpm:undici to version 6.28.1, 7.29.1, 8.10.2 or higher.

    [,6.28.1)[7.6.0,7.29.1)[8.0.0,8.10.2)
    • H
    Uncaught Exception

    org.mvnpm:undici is an An HTTP/1.1 client, written from scratch for Node.js

    Affected versions of this package are vulnerable to Uncaught Exception in its WebSocket client, in the form of a TypeError inside a queueMicrotask callback when a server's 101 response carries a Sec-WebSocket-Protocol header the client never requested. An attacker can crash the process by returning a 101 handshake response that names a subprotocol the client did not offer. This requires the application to open a WebSocket without requesting a subprotocol to an attacker-controlled or compromised server, or over plaintext ws:// where a MitM can alter the handshake.

    How to fix Uncaught Exception?

    Upgrade org.mvnpm:undici to version 6.28.1, 7.29.1, 8.10.2 or higher.

    [6.21.2,6.28.1)[7.6.0,7.29.1)[8.0.0,8.10.2)