Skip to content

Commit

Permalink
lib: update undici to v5.28.3
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: nodejs-private/node-private#539
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
CVE-ID: CVE-2024-24758
  • Loading branch information
mcollina authored and RafaelGSS committed Feb 13, 2024
1 parent c213910 commit 89bd5fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions deps/undici/src/lib/fetch/index.js
Expand Up @@ -1203,6 +1203,9 @@ function httpRedirectFetch (fetchParams, response) {
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
request.headersList.delete('authorization')

// https://fetch.spec.whatwg.org/#authentication-entries
request.headersList.delete('proxy-authorization', true)

// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
request.headersList.delete('cookie')
request.headersList.delete('host')
Expand Down
2 changes: 1 addition & 1 deletion deps/undici/src/package.json
@@ -1,6 +1,6 @@
{
"name": "undici",
"version": "5.27.2",
"version": "5.28.3",
"description": "An HTTP/1.1 client, written from scratch for Node.js",
"homepage": "https://undici.nodejs.org",
"bugs": {
Expand Down
1 change: 1 addition & 0 deletions deps/undici/undici.js
Expand Up @@ -10618,6 +10618,7 @@ var require_fetch = __commonJS({
}
if (!sameOrigin(requestCurrentURL(request), locationURL)) {
request.headersList.delete("authorization");
request.headersList.delete("proxy-authorization", true);
request.headersList.delete("cookie");
request.headersList.delete("host");
}
Expand Down
2 changes: 1 addition & 1 deletion src/undici_version.h
Expand Up @@ -2,5 +2,5 @@
// Refer to tools/dep_updaters/update-undici.sh
#ifndef SRC_UNDICI_VERSION_H_
#define SRC_UNDICI_VERSION_H_
#define UNDICI_VERSION "5.27.2"
#define UNDICI_VERSION "5.28.3"
#endif // SRC_UNDICI_VERSION_H_

0 comments on commit 89bd5fc

Please sign in to comment.