Your message dated Sat, 26 Mar 2022 11:59:13 +0000 with message-id <c4d20274f6d76a43fb574d2177f6e3af4235e4be.camel@adam-barratt.org.uk> and subject line Closing p-u requests for updates in 11.3 has caused the Debian Bug report #1004033, regarding bullseye-pu: package node-fetch/2.6.1-5+deb11u1 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 1004033: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004033 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: bullseye-pu: package node-fetch/2.6.1-5+deb11u1
- From: Yadd <yadd@debian.org>
- Date: Wed, 19 Jan 2022 16:49:10 +0100
- Message-id: <164260735098.1829095.2326089725185686916.reportbug@deb007.xnr.fr>
Package: release.debian.org Severity: normal Tags: bullseye User: release.debian.org@packages.debian.org Usertags: pu [ Reason ] node-fetch is vulnerable to privacy breach (CVE-2022-0235) [ Impact ] Medium vulnerability [ Tests ] Test passed [ Risks ] Low risk, patch just cleans headers [ Checklist ] [X] *all* changes are documented in the d/changelog [X] I reviewed all changes and I approve them [X] attach debdiff against the package in (old)stable [X] the issue is verified as fixed in unstable [ Changes ] Clean headers before request Cheers, Yadddiff --git a/debian/changelog b/debian/changelog index 7f3da38..31eb312 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +node-fetch (2.6.1-5+deb11u1) bullseye; urgency=medium + + * Team upload + * Don't forward secure headers to 3th party (Closes: CVE-2022-0235) + + -- Yadd <yadd@debian.org> Wed, 19 Jan 2022 16:46:28 +0100 + node-fetch (2.6.1-5) unstable; urgency=medium * Team upload diff --git a/debian/patches/CVE-2022-0235.patch b/debian/patches/CVE-2022-0235.patch new file mode 100644 index 0000000..d97cd7a --- /dev/null +++ b/debian/patches/CVE-2022-0235.patch @@ -0,0 +1,22 @@ +Description: don't forward secure headers to 3th party +Author: Jimmy Wärting <jimmy@warting.se> +Origin: upstream, https://github.com/node-fetch/node-fetch/commit/f5d3cf5e +Bug: https://huntr.dev/bounties/d26ab655-38d6-48b3-be15-f9ad6b6ae6f7/ +Forwarded: not-needed +Reviewed-By: Yadd <yadd@debian.org> +Last-Update: 2022-01-19 + +--- a/src/index.js ++++ b/src/index.js +@@ -170,6 +170,11 @@ + requestOpts.body = undefined; + requestOpts.headers.delete('content-length'); + } ++ if (!isDomainOrSubdomain(request.url, locationURL)) { ++ for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { ++ requestOptions.headers.delete(name); ++ } ++ } + + // HTTP-redirect fetch step 15 + resolve(fetch(new Request(locationURL, requestOpts))); diff --git a/debian/patches/series b/debian/patches/series index 882f8ed..20c4319 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ babelrc.patch fix-default-export.diff drop-legacy-rollup-babel-plugin.patch +CVE-2022-0235.patch
--- End Message ---
--- Begin Message ---
- To: 1000342-done@bugs.debian.org, 1000645-done@bugs.debian.org, 1001411-done@bugs.debian.org, 1001692-done@bugs.debian.org, 1001740-done@bugs.debian.org, 1001849-done@bugs.debian.org, 1002012-done@bugs.debian.org, 1002051-done@bugs.debian.org, 1002563-done@bugs.debian.org, 1002619-done@bugs.debian.org, 1002620-done@bugs.debian.org, 1002652-done@bugs.debian.org, 1002685-done@bugs.debian.org, 1002703-done@bugs.debian.org, 1003018-done@bugs.debian.org, 1003058-done@bugs.debian.org, 1003133-done@bugs.debian.org, 1003173-done@bugs.debian.org, 1003484-done@bugs.debian.org, 1003526-done@bugs.debian.org, 1003659-done@bugs.debian.org, 1003765-done@bugs.debian.org, 1003948-done@bugs.debian.org, 1004033-done@bugs.debian.org, 1004050-done@bugs.debian.org, 1004192-done@bugs.debian.org, 1004247-done@bugs.debian.org, 1004384-done@bugs.debian.org, 1004452-done@bugs.debian.org, 1004483-done@bugs.debian.org, 1004533-done@bugs.debian.org, 1004575-done@bugs.debian.org, 1004741-done@bugs.debian.org, 1004895-done@bugs.debian.org, 1004966-done@bugs.debian.org, 1004999-done@bugs.debian.org, 1005007-done@bugs.debian.org, 1005010-done@bugs.debian.org, 1005013-done@bugs.debian.org, 1005052-done@bugs.debian.org, 1005148-done@bugs.debian.org, 1005158-done@bugs.debian.org, 1005217-done@bugs.debian.org, 1005232-done@bugs.debian.org, 1005288-done@bugs.debian.org, 1005340-done@bugs.debian.org, 1005351-done@bugs.debian.org, 1005355-done@bugs.debian.org, 1005372-done@bugs.debian.org, 1005694-done@bugs.debian.org, 1005861-done@bugs.debian.org, 1005868-done@bugs.debian.org, 1005949-done@bugs.debian.org, 1006010-done@bugs.debian.org, 1006137-done@bugs.debian.org, 1006138-done@bugs.debian.org, 1006165-done@bugs.debian.org, 1006187-done@bugs.debian.org, 1006192-done@bugs.debian.org, 1006215-done@bugs.debian.org, 1006222-done@bugs.debian.org, 1006342-done@bugs.debian.org, 1006371-done@bugs.debian.org, 1006402-done@bugs.debian.org, 1006493-done@bugs.debian.org, 1006522-done@bugs.debian.org, 1006752-done@bugs.debian.org, 1006768-done@bugs.debian.org, 1006796-done@bugs.debian.org, 1006797-done@bugs.debian.org, 1006883-done@bugs.debian.org, 1006905-done@bugs.debian.org, 1006916-done@bugs.debian.org, 1007001-done@bugs.debian.org, 1007249-done@bugs.debian.org, 1007261-done@bugs.debian.org, 1007262-done@bugs.debian.org, 1007747-done@bugs.debian.org, 1007878-done@bugs.debian.org, 1007909-done@bugs.debian.org, 1007920-done@bugs.debian.org, 1007947-done@bugs.debian.org, 1007963-done@bugs.debian.org, 1008031-done@bugs.debian.org, 1008074-done@bugs.debian.org, 1006446-done@bugs.debian.org
- Subject: Closing p-u requests for updates in 11.3
- From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Date: Sat, 26 Mar 2022 11:59:13 +0000
- Message-id: <c4d20274f6d76a43fb574d2177f6e3af4235e4be.camel@adam-barratt.org.uk>
Package: release.debian.org Version: 11.3 Hi, The updates referenced by these bugs were included in stable as part of this morning's 11.3 point release. Regards, Adam
--- End Message ---