Your message dated Sat, 09 Oct 2021 12:11:43 +0100 with message-id <896b7609401ceb0e1c537222e26587ea2351415d.camel@adam-barratt.org.uk> and subject line Closing bugs for fixes included in the 10.11 point release has caused the Debian Bug report #994862, regarding buster-pu: package node-ansi-regex/3.0.0-1+deb10u1 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.) -- 994862: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994862 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: buster-pu: package node-ansi-regex/3.0.0-1+deb10u1
- From: Yadd <yadd@debian.org>
- Date: Wed, 22 Sep 2021 09:15:28 +0200
- Message-id: <163229492870.1180595.8472473535896384670.reportbug@deb007.xnr.fr>
Package: release.debian.org Severity: normal Tags: buster User: release.debian.org@packages.debian.org Usertags: pu [ Reason ] node-ansi-regex is vulnerable to a ReDoS (CVE-2021-3807) [ Impact ] Little vulnerability [ Tests ] Test passed (no change) [ Risks ] Low 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 ] Regex improvement Cheers, Yadddiff --git a/debian/changelog b/debian/changelog index 92aa3dc..095e7f4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +node-ansi-regex (3.0.0-1+deb10u1) unstable; urgency=medium + + * Team upload + * Fix ReDoS (Closes: CVE-2021-3807) + + -- Yadd <yadd@debian.org> Wed, 22 Sep 2021 09:12:15 +0200 + node-ansi-regex (3.0.0-1) unstable; urgency=medium * Team upload diff --git a/debian/patches/CVE-2021-3807.patch b/debian/patches/CVE-2021-3807.patch new file mode 100644 index 0000000..b5efa42 --- /dev/null +++ b/debian/patches/CVE-2021-3807.patch @@ -0,0 +1,19 @@ +Description: Fix potential ReDoS +Author: Yeting Li <liyt@ios.ac.cn> +Origin: upstream, https://github.com/chalk/ansi-regex/commit/8d1d7cdb +Bug: https://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994 +Forwarded: not-needed +Reviewed-By: Yadd <yadd@debian.org> +Last-Update: 2021-09-22 + +--- a/index.js ++++ b/index.js +@@ -2,7 +2,7 @@ + + module.exports = () => { + const pattern = [ +- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)', ++ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', + '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))' + ].join('|'); + diff --git a/debian/patches/series b/debian/patches/series index c508ffd..38e81d3 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 00-mocha.diff +CVE-2021-3807.patch
--- End Message ---
--- Begin Message ---
- To: 986216-done@bugs.debian.org, 986669-done@bugs.debian.org, 986898-done@bugs.debian.org, 987372-done@bugs.debian.org, 989494-done@bugs.debian.org, 989530-done@bugs.debian.org, 989815-done@bugs.debian.org, 990066-done@bugs.debian.org, 990182-done@bugs.debian.org, 990315-done@bugs.debian.org, 991221-done@bugs.debian.org, 991514-done@bugs.debian.org, 991516-done@bugs.debian.org, 991632-done@bugs.debian.org, 991641-done@bugs.debian.org, 991881-done@bugs.debian.org, 991886-done@bugs.debian.org, 991909-done@bugs.debian.org, 992117-done@bugs.debian.org, 992243-done@bugs.debian.org, 992374-done@bugs.debian.org, 992599-done@bugs.debian.org, 992863-done@bugs.debian.org, 993034-done@bugs.debian.org, 993134-done@bugs.debian.org, 993224-done@bugs.debian.org, 993228-done@bugs.debian.org, 993277-done@bugs.debian.org, 993492-done@bugs.debian.org, 993823-done@bugs.debian.org, 993898-done@bugs.debian.org, 994021-done@bugs.debian.org, 994023-done@bugs.debian.org, 994513-done@bugs.debian.org, 994583-done@bugs.debian.org, 994853-done@bugs.debian.org, 994862-done@bugs.debian.org, 994887-done@bugs.debian.org, 994943-done@bugs.debian.org, 995238-done@bugs.debian.org, 995482-done@bugs.debian.org
- Subject: Closing bugs for fixes included in the 10.11 point release
- From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Date: Sat, 09 Oct 2021 12:11:43 +0100
- Message-id: <896b7609401ceb0e1c537222e26587ea2351415d.camel@adam-barratt.org.uk>
Package: release.debian.org Version: 10.11 Hi, The updates relating to these bugs were included in this morning's 10.11 point release for buster. Regards, Adam
--- End Message ---