Undici is an HTTP/1.1 client for Node.js. Prior to version 5.19.1, the `Headers.set()` and `Headers.append()` methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the `headerValueNormalize()` utility function. This vulnerability was patched in v5.19.1. No known workarounds are available.
Direct dependency fix Resolution (discord.js): 14.7.0
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2023-23936
### Vulnerable Library - undici-5.11.0.tgz
An HTTP/1.1 client, written from scratch for Node.js
Undici is an HTTP/1.1 client for Node.js. Starting with version 2.0.0 and prior to version 5.19.1, the undici library does not protect `host` HTTP header from CRLF injection vulnerabilities. This issue is patched in Undici v5.19.1. As a workaround, sanitize the `headers.host` string before passing to undici.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
Vulnerable Library - discord.js-14.6.0.tgz
Found in HEAD commit: d6f11282ee9f4af0baad5df06570b6a9700994af
Vulnerabilities
Details
CVE-2023-24807
### Vulnerable Library - undici-5.11.0.tgzAn HTTP/1.1 client, written from scratch for Node.js
Library home page: https://registry.npmjs.org/undici/-/undici-5.11.0.tgz
Dependency Hierarchy: - discord.js-14.6.0.tgz (Root Library) - :x: **undici-5.11.0.tgz** (Vulnerable Library)
Found in HEAD commit: d6f11282ee9f4af0baad5df06570b6a9700994af
Found in base branch: master
### Vulnerability DetailsUndici is an HTTP/1.1 client for Node.js. Prior to version 5.19.1, the `Headers.set()` and `Headers.append()` methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the `headerValueNormalize()` utility function. This vulnerability was patched in v5.19.1. No known workarounds are available.
Publish Date: 2023-02-16
URL: CVE-2023-24807
### 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 FixType: Upgrade version
Origin: https://github.com/nodejs/undici/security/advisories/GHSA-r6ch-mqf9-qc9w
Release Date: 2023-02-16
Fix Resolution (undici): 5.19.1
Direct dependency fix Resolution (discord.js): 14.7.0
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)CVE-2023-23936
### Vulnerable Library - undici-5.11.0.tgzAn HTTP/1.1 client, written from scratch for Node.js
Library home page: https://registry.npmjs.org/undici/-/undici-5.11.0.tgz
Dependency Hierarchy: - discord.js-14.6.0.tgz (Root Library) - :x: **undici-5.11.0.tgz** (Vulnerable Library)
Found in HEAD commit: d6f11282ee9f4af0baad5df06570b6a9700994af
Found in base branch: master
### Vulnerability DetailsUndici is an HTTP/1.1 client for Node.js. Starting with version 2.0.0 and prior to version 5.19.1, the undici library does not protect `host` HTTP header from CRLF injection vulnerabilities. This issue is patched in Undici v5.19.1. As a workaround, sanitize the `headers.host` string before passing to undici.
Publish Date: 2023-02-16
URL: CVE-2023-23936
### CVSS 3 Score Details (5.4)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - 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 FixType: Upgrade version
Origin: https://github.com/nodejs/undici/security/advisories/GHSA-5r9g-qh6m-jxff
Release Date: 2023-02-16
Fix Resolution (undici): 5.19.1
Direct dependency fix Resolution (discord.js): 14.7.0
Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)