mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6180] [MERGED] chore(frontend): resolve the high-severity brace-expansion advisory #6142
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6180
Author: @n0ctal
Created: 8/5/2026
Status: ✅ Merged
Merged: 8/6/2026
Merged by: @MHSanaei
Base:
main← Head:upstream-fix-npm-audit-brace-expansion📝 Commits (1)
dd91121chore(frontend): resolve the high-severity brace-expansion advisory📊 Changes
2 files changed (+15 additions, -1 deletions)
View changed files
📝
frontend/package-lock.json(+13 -0)📝
frontend/package.json(+2 -1)📄 Description
Summary
The
frontendCI job fails onmainbecausenpm audit --omit=dev --audit-level=highreports GHSA-rgw5-rvv9-x895 inbrace-expansion. Pin the patched 5.0.9 for the production path.Why
npm audit --omit=dev --audit-level=highis a hard gate inci.yml, and it is currently red onmainitself — run 30898275209 on38838827. Every pull request inherits the failure, which makes the job useless as a signal: a real advisory introduced by a PR would look exactly like today's noise.The production path is:
5.0.8is inside the advisory's affected range (4.0.0 - 5.0.8);5.0.9is the fix.Scope
frontend/package.json—brace-expansion: ^5.0.9added to the existingswagger-ui-reactoverrides block, next to thejs-yamloverride already there.frontend/package-lock.json— regenerated.Scoped rather than global on purpose:
eslint-plugin-jsx-a11ystill resolvesminimatch@3, which requiresbrace-expansion@^1.1.7, and a top-level override would force v5 into that subtree as well. After the change the tree keeps1.1.16where it belongs and only the swagger path moves.Validation
npm ci --ignore-scriptsfrom the regenerated lockfile, thennpm ls brace-expansionshows5.0.9under the swagger path and1.1.16unchanged undereslint-plugin-jsx-a11y.npm audit --omit=dev --audit-level=high→found 0 vulnerabilities.npm run typecheckandnpm run buildboth clean.Risk
Low. A patch-level bump of a transitive dependency, scoped to one subtree; no source change and no behaviour change in the app.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.