Skip to content

Commit dc0b779

Browse files
fix: upgrade brace-expansion to 5.0.5 to address CVE-2026-33750
Add brace-expansion override to resolve Dependabot alert #20. brace-expansion >= 4.0.0, < 5.0.5 is vulnerable to a zero-step sequence causing process hang and memory exhaustion (CWE-400). Rebuild dist to include the patched dependency. Co-Authored-By: David Konigsberg <davidakonigsberg@gmail.com>
1 parent da3d629 commit dc0b779

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

dist/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40261,7 +40261,7 @@ const slashPattern = /\\\\/g;
4026140261
const openPattern = /\\{/g;
4026240262
const closePattern = /\\}/g;
4026340263
const commaPattern = /\\,/g;
40264-
const periodPattern = /\\./g;
40264+
const periodPattern = /\\\./g;
4026540265
exports.EXPANSION_MAX = 100_000;
4026640266
function numeric(str) {
4026740267
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
@@ -40388,7 +40388,9 @@ function expand_(str, max, isTop) {
4038840388
const x = numeric(n[0]);
4038940389
const y = numeric(n[1]);
4039040390
const width = Math.max(n[0].length, n[1].length);
40391-
let incr = n.length === 3 && n[2] !== undefined ? Math.abs(numeric(n[2])) : 1;
40391+
let incr = n.length === 3 && n[2] !== undefined ?
40392+
Math.max(Math.abs(numeric(n[2])), 1)
40393+
: 1;
4039240394
let test = lte;
4039340395
const reverse = y < x;
4039440396
if (reverse) {

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"vitest": "^4.0.18"
3636
},
3737
"overrides": {
38-
"undici": "^6.24.1"
38+
"undici": "^6.24.1",
39+
"brace-expansion": "^5.0.5"
3940
}
4041
}

0 commit comments

Comments
 (0)