braces @2.3.2
Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.
Maintainers
Keywords
Dependencies (10)
| Package | Constraint | Registry Status |
|---|---|---|
| isobject | ^3.0.1 | auto_approved |
| to-regex | ^3.0.1 | auto_approved |
| fill-range | ^4.0.0 | auto_approved |
| snapdragon | ^0.8.1 | auto_approved |
| arr-flatten | ^1.1.0 | auto_approved |
| array-unique | ^0.3.2 | auto_approved |
| split-string | ^3.0.2 | auto_approved |
| extend-shallow | ^2.0.1 | No greenflagged match |
| repeat-element | ^1.1.2 | auto_approved |
| snapdragon-node | ^2.0.1 | auto_approved |
Dev Dependencies (17)
| Package | Constraint | Registry Status |
|---|---|---|
| gulp | ^3.9.1 | No greenflagged match |
| mocha | ^3.2.0 | auto_approved |
| ansi-cyan | ^0.1.1 | auto_approved |
| minimatch | ^3.0.4 | auto_approved |
| time-diff | ^0.3.1 | auto_approved |
| gulp-mocha | ^3.0.1 | No greenflagged match |
| is-windows | ^1.0.1 | auto_approved |
| text-table | ^0.2.0 | auto_approved |
| benchmarked | ^2.0.0 | auto_approved |
| cross-spawn | ^5.1.0 | No greenflagged match |
| gulp-eslint | ^4.0.0 | No greenflagged match |
| gulp-unused | ^0.2.1 | Not imported |
| yargs-parser | ^8.0.0 | No greenflagged match |
| gulp-istanbul | ^1.1.2 | Not imported |
| noncharacters | ^1.1.0 | auto_approved |
| gulp-format-md | ^1.0.0 | auto_approved |
| brace-expansion | ^1.1.8 | auto_approved |
Transitive Dependency Tree
Changes from v1.8.5
Dependency Changes
| Change | Package | Version |
|---|---|---|
| added | isobject | ^3.0.1 |
| added | to-regex | ^3.0.1 |
| added | fill-range | ^4.0.0 |
| added | snapdragon | ^0.8.1 |
| added | arr-flatten | ^1.1.0 |
| added | array-unique | ^0.3.2 |
| added | split-string | ^3.0.2 |
| added | extend-shallow | ^2.0.1 |
| added | snapdragon-node | ^2.0.1 |
| removed | preserve | ^0.2.0 |
| removed | expand-range | ^1.8.1 |
Script Changes
+ benchmarkFile Changes
Risk Dispositions (1 applicable to this version, 0 other)
Accepted rules are downgraded to INFO on future analyses; rejected rules escalate to CRITICAL.
| Rule | Source | Disposition | Author | Reason | |
|---|---|---|---|---|---|
osv:GHSA-grv7-fg5c-xmjg |
osv | reject | AI | AI (osv): Advisory affects all braces versions < 3.0.3; this version (2.1.0) is permanently in the affected range. |
SAST Findings (2)
CVSS 7.5 (HIGH) — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H The NPM package `braces` fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
Review Summary
Risk score: 43. Findings: 1 critical (+40), 1 low (+3).
Commit: 8a3edbb31955 Browse source
Published to npm: