|
|
7def09 |
From e040864f2797b9c705bac5862581d5f190510e04 Mon Sep 17 00:00:00 2001
|
|
|
7def09 |
From: rpm-build <rpm-build>
|
|
|
7def09 |
Date: Thu, 9 Dec 2021 15:48:46 +0100
|
|
|
7def09 |
Subject: [PATCH] deps(ansi-regex): fix potential ReDoS
|
|
|
7def09 |
|
|
|
7def09 |
This is the upstream fix [1] applied to all applicable bundled deps.
|
|
|
7def09 |
|
|
|
7def09 |
[1]: https://github.com/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9
|
|
|
7def09 |
|
|
|
7def09 |
Fixes: CVE-2021-3807
|
|
|
7def09 |
Signed-off-by: rpm-build <rpm-build>
|
|
|
7def09 |
---
|
|
|
7def09 |
deps/npm/node_modules/cliui/node_modules/ansi-regex/index.js | 2 +-
|
|
|
7def09 |
.../node_modules/string-width/node_modules/ansi-regex/index.js | 2 +-
|
|
|
7def09 |
.../npm/node_modules/wrap-ansi/node_modules/ansi-regex/index.js | 2 +-
|
|
|
7def09 |
deps/npm/node_modules/yargs/node_modules/ansi-regex/index.js | 2 +-
|
|
|
7def09 |
4 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
7def09 |
|
|
|
7def09 |
diff --git a/deps/npm/node_modules/cliui/node_modules/ansi-regex/index.js b/deps/npm/node_modules/cliui/node_modules/ansi-regex/index.js
|
|
|
7def09 |
index c254480..9e37ec3 100644
|
|
|
7def09 |
--- a/deps/npm/node_modules/cliui/node_modules/ansi-regex/index.js
|
|
|
7def09 |
+++ b/deps/npm/node_modules/cliui/node_modules/ansi-regex/index.js
|
|
|
7def09 |
@@ -6,7 +6,7 @@ module.exports = options => {
|
|
|
7def09 |
}, options);
|
|
|
7def09 |
|
|
|
7def09 |
const pattern = [
|
|
|
7def09 |
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
|
7def09 |
+ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
|
7def09 |
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
|
|
7def09 |
].join('|');
|
|
|
7def09 |
|
|
|
7def09 |
diff --git a/deps/npm/node_modules/string-width/node_modules/ansi-regex/index.js b/deps/npm/node_modules/string-width/node_modules/ansi-regex/index.js
|
|
|
7def09 |
index c4aaecf..7d32201 100644
|
|
|
7def09 |
--- a/deps/npm/node_modules/string-width/node_modules/ansi-regex/index.js
|
|
|
7def09 |
+++ b/deps/npm/node_modules/string-width/node_modules/ansi-regex/index.js
|
|
|
7def09 |
@@ -2,7 +2,7 @@
|
|
|
7def09 |
|
|
|
7def09 |
module.exports = () => {
|
|
|
7def09 |
const pattern = [
|
|
|
7def09 |
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)',
|
|
|
7def09 |
+ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
|
7def09 |
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))'
|
|
|
7def09 |
].join('|');
|
|
|
7def09 |
|
|
|
7def09 |
diff --git a/deps/npm/node_modules/wrap-ansi/node_modules/ansi-regex/index.js b/deps/npm/node_modules/wrap-ansi/node_modules/ansi-regex/index.js
|
|
|
7def09 |
index c254480..9e37ec3 100644
|
|
|
7def09 |
--- a/deps/npm/node_modules/wrap-ansi/node_modules/ansi-regex/index.js
|
|
|
7def09 |
+++ b/deps/npm/node_modules/wrap-ansi/node_modules/ansi-regex/index.js
|
|
|
7def09 |
@@ -6,7 +6,7 @@ module.exports = options => {
|
|
|
7def09 |
}, options);
|
|
|
7def09 |
|
|
|
7def09 |
const pattern = [
|
|
|
7def09 |
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
|
7def09 |
+ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
|
7def09 |
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
|
|
7def09 |
].join('|');
|
|
|
7def09 |
|
|
|
7def09 |
diff --git a/deps/npm/node_modules/yargs/node_modules/ansi-regex/index.js b/deps/npm/node_modules/yargs/node_modules/ansi-regex/index.js
|
|
|
7def09 |
index c254480..9e37ec3 100644
|
|
|
7def09 |
--- a/deps/npm/node_modules/yargs/node_modules/ansi-regex/index.js
|
|
|
7def09 |
+++ b/deps/npm/node_modules/yargs/node_modules/ansi-regex/index.js
|
|
|
7def09 |
@@ -6,7 +6,7 @@ module.exports = options => {
|
|
|
7def09 |
}, options);
|
|
|
7def09 |
|
|
|
7def09 |
const pattern = [
|
|
|
7def09 |
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
|
7def09 |
+ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
|
7def09 |
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
|
|
7def09 |
].join('|');
|
|
|
7def09 |
|
|
|
7def09 |
--
|
|
|
7def09 |
2.33.1
|
|
|
7def09 |
|
|
|
7def09 |
|