Your message dated Sat, 29 Apr 2023 10:54:14 +0100 with message-id <502b8fb37ece620c9723446611a9287974ba5a0c.camel@adam-barratt.org.uk> and subject line Closing p-u requests for fixes included in 11.7 has caused the Debian Bug report #1032134, regarding bullseye-pu: package node-cookiejar/2.1.2-1+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.) -- 1032134: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032134 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-cookiejar/2.1.2-1+deb11u1
- From: Yadd <yadd@debian.org>
- Date: Tue, 28 Feb 2023 18:00:56 +0400
- Message-id: <167759285655.1870339.16375062618388130532.reportbug@debian007.xnr.fr>
Package: release.debian.org Severity: normal Tags: bullseye User: release.debian.org@packages.debian.org Usertags: pu X-Debbugs-Cc: node-cookiejar@packages.debian.org Control: affects -1 + src:node-cookiejar [ Reason ] node-cookiejar is vulnerable to ReDoS (CVE-2022-25901). [ Impact ] Medium security issue. [ Tests ] Test passed [ Risks ] No risk, patch is trivial [ 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 ] Check if cookie is not too big Cheers, Yadddiff --git a/debian/changelog b/debian/changelog index d31a10d..2ecbcad 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +node-cookiejar (2.1.2-1+deb11u1) bullseye; urgency=medium + + * Team upload + * Add a guard against maliciously-sized cookies (Closes: CVE-2022-25901) + + -- Yadd <yadd@debian.org> Tue, 28 Feb 2023 17:55:16 +0400 + node-cookiejar (2.1.2-1) unstable; urgency=medium * Team upload diff --git a/debian/patches/CVE-2022-25901.patch b/debian/patches/CVE-2022-25901.patch new file mode 100644 index 0000000..8933f32 --- /dev/null +++ b/debian/patches/CVE-2022-25901.patch @@ -0,0 +1,22 @@ +Description: add a guard against maliciously-sized cookies +Author: Andy Burke <andy.burke@mailbox.earth> +Bug: https://github.com/TheKingTermux/alice/issues/240 +Forwarded: not-needed +Applied-Upstream: 2.1.4, https://github.com/bmeck/node-cookiejar/pull/39 +Reviewed-By: Yadd <yadd@debian.org> +Last-Update: 2023-02-28 + +--- a/cookiejar.js ++++ b/cookiejar.js +@@ -65,6 +65,11 @@ + var cookie_str_splitter = /[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g; + Cookie.prototype.parse = function parse(str, request_domain, request_path) { + if (this instanceof Cookie) { ++ if ( str.length > 32768 ) { ++ console.warn("Cookie too long for parsing (>32768 characters)"); ++ return; ++ } ++ + var parts = str.split(";").filter(function (value) { + return !!value; + }); diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..239e3ed --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +CVE-2022-25901.patch
--- End Message ---
--- Begin Message ---
- To: 1009659-done@bugs.debian.org, 1016179-done@bugs.debian.org, 1024805-done@bugs.debian.org, 1025329-done@bugs.debian.org, 1025654-done@bugs.debian.org, 1025703-done@bugs.debian.org, 1025925-done@bugs.debian.org, 1026074-done@bugs.debian.org, 1026177-done@bugs.debian.org, 1026447-done@bugs.debian.org, 1026845-done@bugs.debian.org, 1026945-done@bugs.debian.org, 1027257-done@bugs.debian.org, 1027258-done@bugs.debian.org, 1027264-done@bugs.debian.org, 1027298-done@bugs.debian.org, 1027772-done@bugs.debian.org, 1028054-done@bugs.debian.org, 1028313-done@bugs.debian.org, 1028386-done@bugs.debian.org, 1028395-done@bugs.debian.org, 1028396-done@bugs.debian.org, 1028468-done@bugs.debian.org, 1028486-done@bugs.debian.org, 1028546-done@bugs.debian.org, 1028571-done@bugs.debian.org, 1029121-done@bugs.debian.org, 1029147-done@bugs.debian.org, 1029217-done@bugs.debian.org, 1029320-done@bugs.debian.org, 1029385-done@bugs.debian.org, 1029619-done@bugs.debian.org, 1029651-done@bugs.debian.org, 1029680-done@bugs.debian.org, 1029728-done@bugs.debian.org, 1029823-done@bugs.debian.org, 1029976-done@bugs.debian.org, 1029994-done@bugs.debian.org, 1030113-done@bugs.debian.org, 1030264-done@bugs.debian.org, 1030598-done@bugs.debian.org, 1030709-done@bugs.debian.org, 1030732-done@bugs.debian.org, 1030851-done@bugs.debian.org, 1030888-done@bugs.debian.org, 1030987-done@bugs.debian.org, 1031042-done@bugs.debian.org, 1031109-done@bugs.debian.org, 1031279-done@bugs.debian.org, 1031410-done@bugs.debian.org, 1031527-done@bugs.debian.org, 1031536-done@bugs.debian.org, 1031630-done@bugs.debian.org, 1031635-done@bugs.debian.org, 1031652-done@bugs.debian.org, 1031783-done@bugs.debian.org, 1031926-done@bugs.debian.org, 1031948-done@bugs.debian.org, 1032134-done@bugs.debian.org, 1032237-done@bugs.debian.org, 1032921-done@bugs.debian.org, 1033079-done@bugs.debian.org, 1033082-done@bugs.debian.org, 1033157-done@bugs.debian.org, 1033160-done@bugs.debian.org, 1033412-done@bugs.debian.org, 1033506-done@bugs.debian.org, 1033578-done@bugs.debian.org, 1033669-done@bugs.debian.org, 1033759-done@bugs.debian.org, 1033770-done@bugs.debian.org, 1033993-done@bugs.debian.org, 1034001-done@bugs.debian.org, 1034039-done@bugs.debian.org, 1034096-done@bugs.debian.org, 1034103-done@bugs.debian.org, 1034198-done@bugs.debian.org, 1034246-done@bugs.debian.org, 1034264-done@bugs.debian.org, 1034454-done@bugs.debian.org, 1034455-done@bugs.debian.org, 1034493-done@bugs.debian.org, 1034548-done@bugs.debian.org, 1034578-done@bugs.debian.org
- Subject: Closing p-u requests for fixes included in 11.7
- From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Date: Sat, 29 Apr 2023 10:54:14 +0100
- Message-id: <502b8fb37ece620c9723446611a9287974ba5a0c.camel@adam-barratt.org.uk>
Package: release.debian.org Version: 11.7 Hi, Each of the updates referred to in these requests was included in this morning's 11.7 point release. Regards, Adam
--- End Message ---