org.mvnpm:undici@8.8.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
    Authorization Bypass Through User-Controlled Key

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

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key via the CacheHandler.onResponseStart function in the cache handler. With an originless Agent using a shared cache and compose(redirect(), cache()), when a credential-bearing request to a user-specific URL receives a same-origin redirect to a cacheable per-user resource, the response is stored under the original URL without varying on credentials. A later authenticated or unauthenticated caller requesting that URL receives the first user’s private response from the cache.

    Notes

    • The shared cache must be a MemoryCacheStore or SqliteCacheStore; the advisory identifies these stores as the affected cache implementations.

    Workarounds

    • Compose the interceptors as compose(cache(), redirect()) to prevent redirected per-user responses from being cached under the original request URL.
    • Use per-origin dispatchers and cache stores to prevent a shared cache from serving one origin’s user-specific response to callers of another.
    • Disable shared caching for credential-bearing requests that can follow redirects to prevent private responses from being reused for other callers.
    • Set appropriate Vary headers on per-user responses, or mark them private or no-store, to prevent shared-cache reuse across users.

    How to fix Authorization Bypass Through User-Controlled Key?

    A fix was pushed into the master branch but not yet published.

    [7.6.0,)
    • H
    Improper Validation of Integrity Check Value

    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 Validation of Integrity Check Value via the fetch() function's Subresource Integrity verification logic, which splits the integrity string on a single space rather than on all ASCII whitespace characters. An integrity value whose digest is preceded by a horizontal tab or other non-space ASCII whitespace (e.g. \tsha256-...) is parsed as a single unrecognized token and skipped. When no recognized algorithm remains, the integrity list is treated as empty and the response is accepted unconditionally, allowing a server that returns a body different from the pinned digest to pass the check. An attacker who controls the response body can deliver arbitrary bytes to an application that uses whitespace-surrounded SRI metadata, with no integrity error raised.

    How to fix Improper Validation of Integrity Check Value?

    A fix was pushed into the master branch but not yet published.

    [7.15.0,)
    • 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 the cache interceptor in lib/interceptor/cache.js when it is composed with a downstream handler that throws during response processing. When a cached response is replayed through the cache interceptor's async store path, a throw raised asynchronously - for example from the built-in dump interceptor exceeding its maxSize, or the decompress interceptor rejecting more than five Content-Encoding values - escapes as an uncaught exception or unhandled promise rejection and terminates the Node.js process. A malicious or compromised HTTP server can trigger this crash by serving a cacheable response whose replayed body or headers cause the downstream handler to throw, including on a 304 revalidation of a stale cache entry.

    Note: This is only exploitable when the cache interceptor is composed with a downstream response handler that throws during response processing (such as dump with a maxSize limit, or decompress with more than five Content-Encoding values).

    How to fix Uncaught Exception?

    A fix was pushed into the master branch but not yet published.

    [7.6.0,)
    • H
    Origin Validation Error

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

    Affected versions of this package are vulnerable to Origin Validation Error via the cache interceptor in lib/interceptor/cache.js when an Agent composes the redirect and shared cache interceptors as compose(redirect(), cache()). The redirect handler strips origin-bound credential headers from a conditional revalidation request but does not strip the cache-generated If-None-Match or If-Modified-Since validators, so when the original origin redirects the revalidation request to a different origin, the redirect destination receives the original origin's validators. undici then treats a 304 Not Modified response from that different origin as successful revalidation of the stored representation, allowing a shared cache to serve the original origin's authenticated response - including one gated by Authorization - to a subsequent unauthenticated caller.

    Note: This is only exploitable when a shared MemoryCacheStore or SqliteCacheStore and the composition compose(redirect(), cache()) are used, and an attacker can influence a cross-origin redirect on the revalidated request.

    How to fix Origin Validation Error?

    A fix was pushed into the master branch but not yet published.

    [7.6.0,)
    • H
    Insertion of Sensitive Information into Log File

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

    Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File via the cleanRequestHeaders function in lib/handler/redirect-handler.js, when request headers are supplied as an array of [name, value] tuples (e.g. via Object.entries(headers)). The redirect interceptor is responsible for stripping sensitive headers such as Authorization, Cookie, Proxy-Authorization, and Host on cross-origin redirects, but it misreads tuple-format headers as a flat alternating [name, value, name, value, ...] list, causing header names to never match the strip list and leaving sensitive headers intact. When a header-normalizing interceptor such as cache() or deduplicate() is composed outside redirect(), it serializes the retained headers onto the cross-origin request, disclosing origin-bound credentials to the redirect destination. This is a representation-dependent bypass of the cross-origin header stripping introduced to address CVE-2024-30260.

    Note: This is only exploitable when headers are supplied as an array of [name, value] tuples and a header-normalizing interceptor (cache() or deduplicate()) is composed outside the redirect() interceptor.

    How to fix Insertion of Sensitive Information into Log File?

    A fix was pushed into the master branch but not yet published.

    [7.6.0,)
    • 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
    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 the DecompressHandler in lib/interceptor/decompress.js, where an uncaught exception thrown by a downstream handler during onResponseData or onResponseEnd propagates unhandled rather than being converged into a per-request error. An attacker or a misbehaving downstream handler can trigger this condition to crash the request pipeline, causing a denial of service.

    How to fix Uncaught Exception?

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

    [7.15.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)
    • H
    Improper Handling of Case Sensitivity

    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 Handling of Case Sensitivity via the fetch() implementation's Subresource Integrity (SRI) verification logic, which matches the algorithm token against a lowercase-only set. A valid but non-lowercase token such as SHA256-... or Sha256-... is treated as unknown and skipped, causing undici to treat the integrity list as empty and accept the response unconditionally. An attacker who controls the response body can therefore deliver arbitrary bytes to an application that pinned a valid uppercase or mixed-case SRI token, with no integrity error raised.

    Note: This is only exploitable when the application uses uppercase or mixed-case algorithm tokens (e.g., SHA256, Sha384) in its integrity metadata rather than the canonical lowercase forms.

    How to fix Improper Handling of Case Sensitivity?

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

    [7.15.0,7.30.1)[8.0.0,8.12.2)
    • C
    Origin Validation Error

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

    Affected versions of this package are vulnerable to Origin Validation Error via cross-origin redirect handling in CacheHandler.onResponseStart, where a redirect to a different origin can cause the final response to be stored under the original (trusted) origin's cache key. An attacker who controls a redirect target can poison the shared cache by serving a response that gets keyed against a URL the application trusts, enabling subsequent cache-served responses to deliver attacker-controlled content. Additionally, intermediate redirect hops carrying restrictive Cache-Control directives (such as no-store or private) are not honored, allowing those hops to be laundered into a cacheable entry under the original key.

    Note: This is only exploitable when an originless Agent, a shared MemoryCacheStore or SqliteCacheStore, and the composition compose(redirect(), cache()) are all used.

    How to fix Origin Validation Error?

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

    [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)
    • 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 the WebSocketStream API, whose socket-close handler calls abort() on the writable stream while the application holds a writer lock and then discards the rejected promise that aborting a locked stream returns. An attacker can crash the process through Node's default unhandledRejection handling by tearing down a WebSocket connection without completing the close handshake, for example with a TCP reset, a proxy teardown, or a protocol-violating frame. This requires the application to use the WebSocketStream API while actively writing through a writer, and the server to be attacker-controlled or compromised.

    How to fix Uncaught Exception?

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

    [7.6.0,7.29.1)[8.0.0,8.10.2)
    • M
    Insufficient Verification of Data Authenticity

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

    Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity in the interceptors.cache() interceptor, whose skip-list construction subtracts the configured methods from the safe-method set instead of excluding the unsafe methods (POST, PUT, PATCH, DELETE), and whose canCacheResponse storage gate does not validate the method. An attacker can have a fabricated response served for later state-changing requests, which then never reach the origin, by returning from an untrusted origin a heuristically cacheable response such as a 404 that carries an explicit Cache-Control: max-age directive to an unsafe method. This applies under the default cache configuration (methods: ['GET']) and requires the origin to return a heuristically cacheable response bearing an explicit cache-control directive.

    How to fix Insufficient Verification of Data Authenticity?

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

    [7.6.0,7.29.1)[8.0.0,8.10.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 in the BalancedPool class, which deep-clones its connect and tls options with JSON.parse(JSON.stringify(...)) and thereby silently drops any function-valued callbacks, such as a custom checkServerIdentity or connector, before they reach the TLS layer. An attacker can present a server certificate that the caller's custom checkServerIdentity was written to reject and still have it accepted, as long as it passes Node's default hostname and chain checks, because the discarded check never runs. This affects only BalancedPool configured with function-valued connect or tls options, and not Client, Pool, Agent, or RoundRobinPool.

    How to fix Improper Certificate Validation?

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

    [7.24.1,7.29.1)[8.0.0,8.10.2)
    • H
    Use of Persistent Cookies Containing Sensitive Information

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

    Affected versions of this package are vulnerable to Use of Persistent Cookies Containing Sensitive Information in the interceptors.cache() interceptor's shared-cache mode (type: 'shared'), which stores responses without excluding their Set-Cookie headers, contrary to RFC 6265 section 7.2. An attacker can have one user's cookie served to every subsequent caller matching the same cache key, or inject an upstream-supplied cookie into responses served to all callers, by getting a cacheable response that carries a Set-Cookie header cached. This requires the shared-cache mode, which is the default for the cache interceptor, with cacheable Set-Cookie responses from a multi-user or untrusted upstream, and private caches are unaffected.

    How to fix Use of Persistent Cookies Containing Sensitive Information?

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

    [7.6.0,7.29.1)[8.0.0,8.10.2)
    • M
    Numeric Truncation Error

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

    Affected versions of this package are vulnerable to Numeric Truncation Error in the interceptors.dump() interceptor, which, for a chunked response with no Content-Length, does not abort an oversized body but terminates after reaching maxSize and trips an internal assertion that is caught and converted into a request abort and connection tear-down. An attacker can cause the application to receive a misleading 200 response with a truncated or empty body, followed by a dropped connection, by returning from an upstream a chunked response without Content-Length that exceeds the dump limit. This requires the application to use the interceptors.dump() interceptor against an untrusted or misbehaving upstream.

    How to fix Numeric Truncation Error?

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

    [7.6.0,7.29.1)[8.0.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)
    • 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 in the interceptors.decompress() interceptor, which caps the decompression chain at 5 layers but does not bound the total decompressed output size. An attacker can exhaust memory and crash the process by delivering, from a malicious upstream, a small compressed response whose Content-Encoding expands to gigabytes. This requires the application to use the interceptors.decompress() interceptor against untrusted or compromised upstream servers.

    How to fix Allocation of Resources Without Limits or Throttling?

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

    [7.15.0,7.29.1)[8.0.0,8.10.2)
    • H
    Missing Release of Resource after Effective Lifetime

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

    Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime in the RetryHandler, which can leave a response body pending indefinitely when a retried request receives a non-retryable response after a truncated one. An attacker can accumulate unresolved promises and streams until the client is denied service by running a malicious server that repeatedly returns a non-retryable response following a truncated one, so the original response body never resolves and calls like response.body.text() never complete. This requires the application to retry requests through the RetryHandler, and bodyTimeout does not fire because the orphaned body is never active.

    How to fix Missing Release of Resource after Effective Lifetime?

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

    [7.11.0,7.29.1)[8.0.0,8.10.2)
    • H
    Information Exposure

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

    Affected versions of this package are vulnerable to Information Exposure via the cache-control parser in lib/util/cache.js used by interceptors.cache(). An attacker can cause a private response to be stored in the shared cache, or terminate request handling, by sending malformed Cache-Control directives such as private="" or mixed private, private="hdr" values from an upstream response. In shared cache mode, a later request with the same cache key can receive another user's cached body and headers, including sensitive Set-Cookie data, and mixed qualified/unqualified private directives can raise an uncaught TypeError that aborts the request.

    How to fix Information Exposure?

    Upgrade org.mvnpm:undici to version 7.29.0, 8.9.0 or higher.

    [7.6.0,7.29.0)[8.0.0,8.9.0)
    • L
    CRLF Injection

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

    Affected versions of this package are vulnerable to CRLF Injection via the writeH1 path in lib/dispatcher/client-h1.js. An attacker can append arbitrary HTTP headers or smuggle a second request by supplying a duck-typed blob-like body whose .type contains \r\n when an application sends it through request(), stream(), pipeline(), or dispatch() without an explicit content-type header. The vulnerable code copies body.type directly into the outgoing content-type header, so the injected newline sequence is written on the wire and processed by the upstream HTTP/1.1 server. This can corrupt request handling and expose or alter requests sent by the user.

    How to fix CRLF Injection?

    Upgrade org.mvnpm:undici to version 6.28.0, 7.29.0, 8.9.0 or higher.

    [,6.28.0)[7.6.0,7.29.0)[8.0.0,8.9.0)
    • H
    Interpretation Conflict

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

    Affected versions of this package are vulnerable to Interpretation Conflict via the parseCacheControlHeader function in lib/util/cache.js and the cache interceptor. An attacker can cause a shared cached response containing authenticated data to be stored and later served to another caller by sending a Cache-Control header with a qualified private or no-cache directive padded with optional whitespace around =. The parser misreads forms such as private ="" or no-cache= "authorization", so the cache logic fails to recognize the directive as a qualified restriction and treats the response as cacheable. In shared-cache deployments that forward Authorization headers, this exposes one user’s response body and cookies to a subsequent request for the same cache key, including an unauthenticated request.

    How to fix Interpretation Conflict?

    Upgrade org.mvnpm:undici to version 7.29.0, 8.9.0 or higher.

    [7.6.0,7.29.0)[8.0.0,8.9.0)
    • 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 due to the interceptors.retry() flow in lib/handler/retry-handler.js. An attacker can cause a proxy or gateway that forwards Undici responses to emit a body whose length does not match the Content-Length header by sending a partial 206 response with mismatched framing and closing the connection to trigger a retry or resume. This can corrupt downstream HTTP framing, causing client or intermediary hangs and response parsing errors, and can expose users of the forwarding service to broken responses or connection desynchronization.

    How to fix HTTP Request Smuggling?

    Upgrade org.mvnpm:undici to version 6.28.0, 7.29.0, 8.9.0 or higher.

    [,6.28.0)[7.6.0,7.29.0)[8.0.0,8.9.0)
    • M
    Improper Neutralization

    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 Neutralization via unsanitized domain handling and unparsed attribute serialization in lib/web/cookies/util.js. An attacker can inject or override cookie attributes by supplying a crafted domain such as example.com; SameSite=None or an unparsed entry such as X-Custom=val; HttpOnly to setCookie. When applications pass user-controlled tenant or routing data into these fields, the serialized Set-Cookie header can carry attacker-chosen flags like SameSite, Secure, or HttpOnly. This can weaken CSRF protections, alter cookie visibility to scripts, or change how the browser sends the cookie.

    How to fix Improper Neutralization?

    Upgrade org.mvnpm:undici to version 6.28.0, 7.29.0, 8.9.0 or higher.

    [,6.28.0)[7.6.0,7.29.0)[8.0.0,8.9.0)