Skip to content

fix: upgrade brace-expansion to 5.0.8, 3.0.3, 2.1.3, 1.1.17 (CVE-2026-14257) - #121589

Closed
anupamme wants to merge 1 commit into
getsentry:masterfrom
anupamme:fix-repo-sentry-cve-2026-14257-brace-expansion
Closed

fix: upgrade brace-expansion to 5.0.8, 3.0.3, 2.1.3, 1.1.17 (CVE-2026-14257)#121589
anupamme wants to merge 1 commit into
getsentry:masterfrom
anupamme:fix-repo-sentry-cve-2026-14257-brace-expansion

Conversation

@anupamme

@anupamme anupamme commented Aug 8, 2026

Copy link
Copy Markdown

Summary

Upgrade brace-expansion from 2.1.1 to 5.0.8, 3.0.3, 2.1.3, 1.1.17 to fix CVE-2026-14257.

Vulnerability

Field Value
ID CVE-2026-14257
Severity HIGH
Scanner trivy
Rule CVE-2026-14257
File pnpm-lock.yaml (dependency: brace-expansion)
Assessment Present in dependency tree, not confirmed reachable

Description: brace-expansion: Brace-expansion: Denial of Service via memory exhaustion in expand() function

Evidence

Scanner confirmation: trivy rule CVE-2026-14257 flagged this pattern.

Changes

  • package.json
  • pnpm-lock.yaml

Behavior Preservation

The change is scoped to 2 files on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.


This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.


Automated security fix by OrbisAI Security

Automated dependency upgrade by OrbisAI Security
@anupamme
anupamme requested a review from a team as a code owner August 8, 2026 11:15
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 8, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8554c2d. Configure here.

Comment thread package.json
"diff@>=4.0.0 <4.0.4": "4.0.4",
"diff@>=5.0.0 <5.2.2": "5.2.2"
"diff@>=5.0.0 <5.2.2": "5.2.2",
"brace-expansion": "2.1.3"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incompatible brace-expansion override

High Severity

The global brace-expansion override pins every consumer to 2.1.3, including minimatch@10.2.5, which depends on brace-expansion 5.x and imports the named expand export. Version 2.1.3 is CommonJS-only with a callable default export, so loading fails with a missing named export error. That breaks tooling such as ESLint and typescript-eslint that rely on minimatch@10. The PR title lists patched majors 5.0.8 / 2.1.3 / 1.1.17, but the override collapses them all to one incompatible line.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 8554c2d. Configure here.

@scttcper

Copy link
Copy Markdown
Member

thanks but this is more of dev dependency

@scttcper scttcper closed this Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants