Skip to content

discord.js-14.18.0.tgz: 20 vulnerabilities (highest severity is: 8.1) #453

Description

@mend-for-github-com
Vulnerable Library - discord.js-14.18.0.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (discord.js version) Remediation Possible**
CVE-2026-4800 High 8.1 lodash-4.17.21.tgz Transitive N/A* ❌
CVE-2026-48779 High 7.5 ws-8.18.0.tgz Transitive N/A* ❌
CVE-2026-2229 High 7.5 undici-6.21.1.tgz Transitive N/A* ❌
CVE-2026-19534 High 7.5 undici-6.21.1.tgz Transitive 15.0.0-core-gateway-rl.1762368996-5fa92a1ea ✅
CVE-2026-1526 High 7.5 undici-6.21.1.tgz Transitive N/A* ❌
CVE-2026-12151 High 7.5 undici-6.21.1.tgz Transitive 15.0.0-core-gateway-rl.1762368996-5fa92a1ea ✅
CVE-2025-13465 High 7.2 lodash-4.17.21.tgz Transitive N/A* ❌
CVE-2026-2950 Medium 6.5 lodash-4.17.21.tgz Transitive 14.19.0 ✅
CVE-2026-1525 Medium 6.5 undici-6.21.1.tgz Transitive N/A* ❌
CVE-2026-9679 Medium 5.9 undici-6.21.1.tgz Transitive 15.0.0-core-gateway-rl.1762368996-5fa92a1ea ✅
CVE-2026-22036 Medium 5.9 undici-6.21.1.tgz Transitive 14.26.0 ✅
CVE-2026-16729 Medium 4.8 undici-6.21.1.tgz Transitive 15.0.0-core-gateway-rl.1762368996-5fa92a1ea ✅
CVE-2026-16728 Medium 4.8 undici-6.21.1.tgz Transitive 15.0.0-core-gateway-rl.1762368996-5fa92a1ea ✅
CVE-2026-1527 Medium 4.6 undici-6.21.1.tgz Transitive N/A* ❌
CVE-2026-45736 Medium 4.4 ws-8.18.0.tgz Transitive 14.19.0 ✅
CVE-2026-15157 Medium 4.2 undici-6.21.1.tgz Transitive 15.0.0-core-gateway-rl.1762368996-5fa92a1ea ✅
CVE-2026-6733 Low 3.7 undici-6.21.1.tgz Transitive N/A* ❌
CVE-2026-18540 Low 3.7 undici-6.21.1.tgz Transitive 15.0.0-core-gateway-rl.1762368996-5fa92a1ea ✅
CVE-2026-11525 Low 3.7 undici-6.21.1.tgz Transitive 15.0.0-core-gateway-rl.1762368996-5fa92a1ea ✅
CVE-2025-47279 Low 3.1 undici-6.21.1.tgz Transitive 14.20.0 ✅

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2026-4800

Vulnerable Library - lodash-4.17.21.tgz

Lodash modular utilities.

Library home page: https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • builders-1.10.1.tgz
      • shapeshift-4.0.0.tgz
        • ❌ lodash-4.17.21.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Impact:
The fix for CVE-2021-23337 (GHSA-35jh-r3h4-6jhm) added validation for the variable option in _.template but did not apply the same validation to options.imports key names. Both paths flow into the same Function() constructor sink.
When an application passes untrusted input as options.imports key names, an attacker can inject default-parameter expressions that execute arbitrary code at template compilation time.
Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function().
Patches:
Users should upgrade to version 4.18.0.
Workarounds:
Do not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.

Publish Date: 2026-03-31

URL: CVE-2026-4800

CVSS 3 Score Details (8.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-r5fr-rjxr-66jc

Release Date: 2026-03-31

Fix Resolution: lodash - 4.18.0

CVE-2026-48779

Vulnerable Library - ws-8.18.0.tgz

Library home page: https://registry.npmjs.org/ws/-/ws-8.18.0.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ws-1.2.1.tgz
      • ❌ ws-8.18.0.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

ws is an open source WebSocket client and server for Node.js. All versions from 1.1.0 up to (but not including) 5.2.5, from 6.0.0 up to 6.2.4, from 7.0.0 up to 7.5.11, and from 8.0.0 up to 8.21.0 are affected by a memory exhaustion DoS vulnerability. A peer can send a high volume of exceptionally small fragments and data chunks, with modest network traffic, to force the remote peer into allocating and holding structural wrappers that consume far more memory than the default documented message-size limit, leading to process termination due to OOM. This issue has been fixed in versions 5.2.5, 6.2.4, 7.5.11, and 8.21.0.

Publish Date: 2026-06-16

URL: CVE-2026-48779

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-96hv-2xvq-fx4p

Release Date: 2026-06-15

Fix Resolution: ws - 8.21.0

CVE-2026-2229

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

ImpactThe undici WebSocket client is vulnerable to a denial-of-service attack due to improper validation of the server_max_window_bits parameter in the permessage-deflate extension. When a WebSocket client connects to a server, it automatically advertises support for permessage-deflate compression. A malicious server can respond with an out-of-range server_max_window_bits value (outside zlib's valid range of 8-15). When the server subsequently sends a compressed frame, the client attempts to create a zlib InflateRaw instance with the invalid windowBits value, causing a synchronous RangeError exception that is not caught, resulting in immediate process termination.
The vulnerability exists because:

  • The isValidClientWindowBits() function only validates that the value contains ASCII digits, not that it falls within the valid range 8-15
  • The createInflateRaw() call is not wrapped in a try-catch block
  • The resulting exception propagates up through the call stack and crashes the Node.js process

Publish Date: 2026-03-12

URL: CVE-2026-2229

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-v9p9-hfj2-hcw8

Release Date: 2026-03-12

Fix Resolution: undici - 6.24.0

CVE-2026-19534

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

undici's WebSocket client crashes the whole Node.js process during the opening handshake when a server responds with a subprotocol that the client never requested. A default WebSocket connection sends no subprotocol, but if the server's 101 response includes a Sec-WebSocket-Protocol header, undici dereferences a null value while checking it against the requested list and throws an uncaught TypeError. Because that code runs inside a microtask with no surrounding error handling, the exception propagates and terminates the process under Node's default behavior, instead of gracefully failing the connection as required by the WebSocket protocol. Any application that opens a WebSocket to an attacker-controlled or compromised server, or over a plaintext connection subject to a machine-in-the-middle, can be crashed remotely without authentication in the default configuration. This affects undici versions from 6.7.0 up to 6.28.1, from 7.0.0 up to 7.29.1, and from 8.0.0 up to 8.10.2. Users should upgrade to undici 6.28.1, 7.29.1, or 8.10.2.

Publish Date: 2026-09-04

URL: CVE-2026-19534

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-rfgv-xxqx-mfg5

Release Date: 2026-09-04

Fix Resolution (undici): 6.28.1

Direct dependency fix Resolution (discord.js): 15.0.0-core-gateway-rl.1762368996-5fa92a1ea

In order to enable automatic remediation, please create workflow rules

CVE-2026-1526

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

The undici WebSocket client is vulnerable to a denial-of-service attack via unbounded memory consumption during permessage-deflate decompression. When a WebSocket connection negotiates the permessage-deflate extension, the client decompresses incoming compressed frames without enforcing any limit on the decompressed data size. A malicious WebSocket server can send a small compressed frame (a "decompression bomb") that expands to an extremely large size in memory, causing the Node.js process to exhaust available memory and crash or become unresponsive.
The vulnerability exists in the PerMessageDeflate.decompress() method, which accumulates all decompressed chunks in memory and concatenates them into a single Buffer without checking whether the total size exceeds a safe threshold.

Publish Date: 2026-03-12

URL: CVE-2026-1526

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-vrm6-8vpv-qv8q

Release Date: 2026-03-12

Fix Resolution: undici - 6.24.0

CVE-2026-12151

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Impact:
The undici WebSocket client enforces maxPayloadSize on the cumulative byte count of fragments in a message but does not enforce a limit on the number of fragments. A malicious WebSocket server can stream many small or empty continuation frames that each pass per-frame and cumulative-size validation, collectively causing unbounded memory growth in the client process. The result is memory exhaustion and a denial of service.
Affected applications are those using the undici WebSocket client (new WebSocket(...)) or the WebSocketStream API that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint.
All releases starting at undici 6.17.0 are affected.
Patches: Upgrade to undici >= 6.26.0, >= 7.28.0, or >= 8.5.0. Workarounds:
No workaround is available. The fix must be applied through an upgrade.

Publish Date: 2026-06-17

URL: CVE-2026-12151

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-vxpw-j846-p89q

Release Date: 2026-06-17

Fix Resolution (undici): 6.27.0

Direct dependency fix Resolution (discord.js): 15.0.0-core-gateway-rl.1762368996-5fa92a1ea

In order to enable automatic remediation, please create workflow rules

CVE-2025-13465

Vulnerable Library - lodash-4.17.21.tgz

Lodash modular utilities.

Library home page: https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • builders-1.10.1.tgz
      • shapeshift-4.0.0.tgz
        • ❌ lodash-4.17.21.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Lodash versions 4.0.0 through 4.17.22 are vulnerable to prototype pollution in the _.unset and _.omit functions. An attacker can pass crafted paths which cause Lodash to delete methods from global prototypes.
The issue permits deletion of properties but does not allow overwriting their original behavior.
This issue is patched on 4.17.23

Publish Date: 2026-01-21

URL: CVE-2025-13465

CVSS 3 Score Details (7.2)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-xxjr-mmjv-4gpg

Release Date: 2026-01-21

Fix Resolution: lodash - 4.17.23

CVE-2026-2950

Vulnerable Library - lodash-4.17.21.tgz

Lodash modular utilities.

Library home page: https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • builders-1.10.1.tgz
      • shapeshift-4.0.0.tgz
        • ❌ lodash-4.17.21.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Impact:
Lodash versions 4.17.23 and earlier are vulnerable to prototype pollution in the _.unset and _.omit functions. The fix for (CVE-2025-13465: GHSA-xxjr-mmjv-4gpg) only guards against string key members, so an attacker can bypass the check by passing array-wrapped path segments. This allows deletion of properties from built-in prototypes such as Object.prototype, Number.prototype, and String.prototype.
The issue permits deletion of prototype properties but does not allow overwriting their original behavior.
Patches:
This issue is patched in 4.18.0.
Workarounds:
None. Upgrade to the patched version.

Publish Date: 2026-03-31

URL: CVE-2026-2950

CVSS 3 Score Details (6.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-xxjr-mmjv-4gpg

Release Date: 2026-03-31

Fix Resolution (lodash): 4.17.23

Direct dependency fix Resolution (discord.js): 14.19.0

In order to enable automatic remediation, please create workflow rules

CVE-2026-1525

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Undici allows duplicate HTTP Content-Length headers when they are provided in an array with case-variant names (e.g., Content-Length and content-length). This produces malformed HTTP/1.1 requests with multiple conflicting Content-Length values on the wire.
Who is impacted:

  • Applications using undici.request(), undici.Client, or similar low-level APIs with headers passed as flat arrays
  • Applications that accept user-controlled header names without case-normalization
    Potential consequences:
  • Denial of Service: Strict HTTP parsers (proxies, servers) will reject requests with duplicate Content-Length headers (400 Bad Request)
  • HTTP Request Smuggling: In deployments where an intermediary and backend interpret duplicate headers inconsistently (e.g., one uses the first value, the other uses the last), this can enable request smuggling attacks leading to ACL bypass, cache poisoning, or credential hijacking

Publish Date: 2026-03-12

URL: CVE-2026-1525

CVSS 3 Score Details (6.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-2mjp-6q6p-2qxm

Release Date: 2026-03-12

Fix Resolution: undici - 6.24.0

CVE-2026-9679

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Impact:
undici's cookie parser in parseSetCookie percent-decodes cookie values via qsUnescape, turning encoded sequences like %0D%0A, %00, %3B, and %3D into their literal byte equivalents. RFC 6265 §5.4 does not specify any decoding and browsers do not decode either.
Applications that parse a Set-Cookie header and then forward the parsed value into a response header (proxies, middleware, SSR frameworks) become vulnerable to HTTP response header injection: an attacker-controlled upstream can inject arbitrary Set-Cookie, Location, or Cache-Control headers into the application's downstream response, enabling session fixation, open redirect, or cache poisoning.
Affected applications are those that use undici's cookie parsing (parseSetCookie, parseCookie, getSetCookies) and forward the parsed cookie value into a response header.
This was introduced in undici 7.0.0 via PR #⁠3789.
Patches:
Upgrade to undici v6.26.0, v7.28.0 or v8.5.0.
Workarounds:
If upgrade is not immediately possible, do not forward values returned by parseSetCookie/parseCookie/getSetCookies directly into response headers; sanitize the value first to strip or reject CR, LF, NUL, ;, and = bytes.

Publish Date: 2026-06-17

URL: CVE-2026-9679

CVSS 3 Score Details (5.9)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: High
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-p88m-4jfj-68fv

Release Date: 2026-06-17

Fix Resolution (undici): 6.27.0

Direct dependency fix Resolution (discord.js): 15.0.0-core-gateway-rl.1762368996-5fa92a1ea

In order to enable automatic remediation, please create workflow rules

CVE-2026-22036

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Undici is an HTTP/1.1 client for Node.js. Prior to 7.18.0 and 6.23.0, the number of links in the decompression chain is unbounded and the default maxHeaderSize allows a malicious server to insert thousands compression steps leading to high CPU usage and excessive memory allocation. This vulnerability is fixed in 7.18.0 and 6.23.0.

Publish Date: 2026-01-14

URL: CVE-2026-22036

CVSS 3 Score Details (5.9)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://osv.dev/vulnerability/GHSA-g9mf-h72j-4rw9

Release Date: 2026-01-14

Fix Resolution (undici): 6.23.0

Direct dependency fix Resolution (discord.js): 14.26.0

In order to enable automatic remediation, please create workflow rules

CVE-2026-16729

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

undici's setCookie function does not fully sanitize cookie attributes. In undici before 6.28.0, from 7.0.0 up to before 7.29.0, and from 8.0.0 up to before 8.9.0, a domain value is not checked for semicolons and entries in the unparsed array are not sanitized, so attacker-influenced input can inject additional cookie attributes. For example, a domain value containing a semicolon can append attributes such as SameSite, and an unparsed entry can inject attributes such as HttpOnly, without the caller setting them. Applications that pass user-controlled input to these fields, such as multi-tenant or reverse-proxy servers that scope session cookies to a tenant-supplied domain, can have SameSite CSRF protections bypassed, or the Secure, HttpOnly, and SameSite attributes forced, stripped, or overridden. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.

Publish Date: 2026-07-29

URL: CVE-2026-16729

CVSS 3 Score Details (4.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-v3r7-h72x-cjcm

Release Date: 2026-07-29

Fix Resolution (undici): 6.28.0

Direct dependency fix Resolution (discord.js): 15.0.0-core-gateway-rl.1762368996-5fa92a1ea

In order to enable automatic remediation, please create workflow rules

CVE-2026-16728

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

undici's retry interceptor can deliver a response whose body length does not match the Content-Length header exposed to the application after a retry or resume of a partial response. In undici before 6.28.0, from 7.0.0 up to before 7.29.0, and from 8.0.0 up to before 8.9.0, a malicious or faulty upstream can return a partial response with a mismatched framing header, close the socket early, and have the retry interceptor assemble a body of a different length while the original Content-Length stays attached. Applications that use the retry interceptor and forward upstream headers and bodies downstream, such as proxies or gateways, may then emit an invalid HTTP response with a stale Content-Length, leading to downstream response desynchronization, connection hangs, or response corruption. Exploitation requires the retry interceptor enabled, an upstream returning a mismatched partial response, and a downstream forwarder that does not remove or recalculate Content-Length. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.

Publish Date: 2026-07-29

URL: CVE-2026-16728

CVSS 3 Score Details (4.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-8xcm-r25x-g524

Release Date: 2026-07-29

Fix Resolution (undici): 6.28.0

Direct dependency fix Resolution (discord.js): 15.0.0-core-gateway-rl.1762368996-5fa92a1ea

In order to enable automatic remediation, please create workflow rules

CVE-2026-1527

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

ImpactWhen an application passes user-controlled input to the upgrade option of client.request(), an attacker can inject CRLF sequences (\r\n) to:

  • Inject arbitrary HTTP headers
  • Terminate the HTTP request prematurely and smuggle raw data to non-HTTP services (Redis, Memcached, Elasticsearch)
    The vulnerability exists because undici writes the upgrade value directly to the socket without validating for invalid header characters:
    // lib/dispatcher/client-h1.js:1121
    if (upgrade) {
    header += "connection: upgrade\r\nupgrade: ${upgrade}\r\n"
    }

Publish Date: 2026-03-12

URL: CVE-2026-1527

CVSS 3 Score Details (4.6)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-4992-7rv2-5pvq

Release Date: 2026-03-12

Fix Resolution: undici - 6.24.0

CVE-2026-45736

Vulnerable Library - ws-8.18.0.tgz

Library home page: https://registry.npmjs.org/ws/-/ws-8.18.0.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ws-1.2.1.tgz
      • ❌ ws-8.18.0.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

ws is an open source WebSocket client and server for Node.js. Prior to 8.20.1, the websocket.close() implementation is vulnerable to uninitialized memory disclosure when a TypedArray is passed as the reason argument. This vulnerability is fixed in 8.20.1.

Publish Date: 2026-05-15

URL: CVE-2026-45736

CVSS 3 Score Details (4.4)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: High
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: None
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-58qx-3vcg-4xpx

Release Date: 2026-05-15

Fix Resolution (ws): 8.20.1

Direct dependency fix Resolution (discord.js): 14.19.0

In order to enable automatic remediation, please create workflow rules

CVE-2026-15157

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

undici does not validate the type property of a duck-typed blob-like request body before using it as the Content-Type header on the HTTP/1.1 dispatcher. In undici before 6.28.0, from 7.0.0 up to before 7.29.0, and from 8.0.0 up to before 8.9.0, an application that passes a hand-rolled blob-like body (via request, stream, pipeline, or dispatch) whose type is derived from untrusted input allows an attacker to inject CRLF sequences and append arbitrary HTTP headers, potentially smuggling a second request past the upstream. Native Blob objects are safe because their constructor strips CRLF from the type, and fetch is unaffected because it validates headers, but ecosystem libraries that build duck-typed blob shapes from user input can reach the vulnerable path. This is the same defect class as CVE-2022-35948 and CVE-2026-1527, on a header sink that the earlier fixes did not cover. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.

Publish Date: 2026-07-29

URL: CVE-2026-15157

CVSS 3 Score Details (4.2)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-m8rv-5g2x-5cg5

Release Date: 2026-07-29

Fix Resolution (undici): 6.28.0

Direct dependency fix Resolution (discord.js): 15.0.0-core-gateway-rl.1762368996-5fa92a1ea

In order to enable automatic remediation, please create workflow rules

CVE-2026-6733

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Impact:
Undici's HTTP/1.1 client is vulnerable to response queue poisoning on reused keep-alive sockets. An attacker-controlled upstream server can inject an unsolicited HTTP/1.1 response onto an idle socket after a request completes. When the client dispatches the next request on that socket, it associates the injected response with the new request, causing responses to be delivered to the wrong requests.
This requires an attacker-controlled or compromised upstream HTTP/1.1 server and keep-alive connection reuse.
Patches:
Upgrade to undici v6.26.0, v7.28.0 or v8.5.0.
Workarounds:
Disable keep-alive connection reuse by setting keepAliveTimeout: 0 on the Client or Pool.

Publish Date: 2026-06-17

URL: CVE-2026-6733

CVSS 3 Score Details (3.7)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-35p6-xmwp-9g52

Release Date: 2026-06-17

Fix Resolution: undici - 6.27.0

CVE-2026-18540

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

undici's retry interceptor can append the body of a ranged retry response to bytes already delivered from an earlier partial response while still presenting the original response's status and headers. This happens when an upstream server delivers part of a body without a trustworthy resume checkpoint, for example a non-success response whose headers were already sent or a partial-content response with an unusable content range, then closes the connection and answers the resumed range request with more bytes. As a result the response body can be longer than the Content-Length that the application observes. An application that relays such a response to a downstream HTTP/1.1 peer without normalizing the framing can emit a body that exceeds the forwarded Content-Length, and the excess bytes can be interpreted as the start of a following response, which enables downstream response splitting or desynchronization. Exploitation requires an attacker-controlled upstream server and an application that forwards the response through a framing-sensitive path. This affects undici versions before 6.28.1, from 7.0.0 up to 7.29.1, and from 8.0.0 up to 8.10.2. Users should upgrade to undici 6.28.1, 7.29.1, or 8.10.2.

Publish Date: 2026-09-04

URL: CVE-2026-18540

CVSS 3 Score Details (3.7)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-r53p-7pc4-xj5r

Release Date: 2026-09-04

Fix Resolution (undici): 6.28.1

Direct dependency fix Resolution (discord.js): 15.0.0-core-gateway-rl.1762368996-5fa92a1ea

In order to enable automatic remediation, please create workflow rules

CVE-2026-11525

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Impact:
When undici parses a Set-Cookie header, it accepts any SameSite attribute value that contains Strict, Lax, or None as a substring, rather than the case-insensitive exact match specified by RFC 6265. Non-spec values are silently mapped to one of the three standard tokens. For example, SameSite=NoneOfYourBusiness is parsed as None (the most permissive setting), and SameSite=StrictLax is parsed as Lax (a downgrade from Strict).
Affected applications are those that consume Set-Cookie headers from server responses (for example via undici's fetch or proxy code paths) and then forward or rely on the parsed sameSite attribute. A malicious or non-compliant server can coerce the consumer's view of a cookie's SameSite policy to a weaker value, silently degrading the SameSite enforcement the cookie is supposed to provide.
This was introduced in undici 5.15.0 when the cookies feature was added.
Patches:
Upgrade to undici v6.26.0, v7.28.0 or v8.5.0.
Workarounds:
After parsing a Set-Cookie header, validate that the resulting sameSite attribute is one of 'Strict', 'Lax', or 'None' (exact, case-insensitive) before forwarding or relying on it.

Publish Date: 2026-06-17

URL: CVE-2026-11525

CVSS 3 Score Details (3.7)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-g8m3-5g58-fq7m

Release Date: 2026-06-17

Fix Resolution (undici): 6.27.0

Direct dependency fix Resolution (discord.js): 15.0.0-core-gateway-rl.1762368996-5fa92a1ea

In order to enable automatic remediation, please create workflow rules

CVE-2025-47279

Vulnerable Library - undici-6.21.1.tgz

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

Library home page: https://registry.npmjs.org/undici/-/undici-6.21.1.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • discord.js-14.18.0.tgz (Root Library)
    • ❌ undici-6.21.1.tgz (Vulnerable Library)

Found in HEAD commit: 4689f8d8651e4b7dfbd2d9cde3cace6ec391acfa

Found in base branch: dev

Vulnerability Details

Undici is an HTTP/1.1 client for Node.js. Prior to versions 5.29.0, 6.21.2, and 7.5.0, applications that use undici to implement a webhook-like system are vulnerable. If the attacker set up a server with an invalid certificate, and they can force the application to call the webhook repeatedly, then they can cause a memory leak. This has been patched in versions 5.29.0, 6.21.2, and 7.5.0. As a workaound, avoid calling a webhook repeatedly if the webhook fails.

Publish Date: 2025-05-15

URL: CVE-2025-47279

CVSS 3 Score Details (3.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-cxrh-j4jr-qwg3

Release Date: 2025-05-15

Fix Resolution (undici): 6.21.2

Direct dependency fix Resolution (discord.js): 14.20.0

In order to enable automatic remediation, please create workflow rules


In order to enable automatic remediation for this issue, please create workflow rules

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions