Repository navigation
Replies: 5 comments 3 replies
|
Do you see the same with |
|
Here is the cleanest way to resolve the 1. The Cleanest Solution: Use npm
|
|
I checked a fresh dependency fixture with For your production follow-up, the clean |
🔍 Why
|
|
Short answer: there’s nothing to patch on the production side. Your production tree is already clean, so the confusion is only about which audit you run. Why it can’t be “fixed” yet GHSA-vfj7-8cjw-p6xm covers braces through 3.0.3, which is the latest published version. Its patched versions are listed as Unknown. Real exposure The chain is dev-only. ESLint expands glob patterns from your own config and CLI args, not from user input, so it isn’t attacker-reachable. Avoiding confusion for devs json CI: fail only on production vulns
If this answers it, please mark it as the answer |
|
There's an important update to this issue that changes the recommended fix. GitHub withdrew GHSA-vfj7-8cjw-p6xm on October 23, 2026, because the reported That means you shouldn't need to force an upgrade or add a dependency override just to resolve this particular advisory. I'd rerun the audit with the current advisory data: npm audit
npm audit --omit=dev
npm ls bracesThe original Since the advisory has been withdrawn, a fresh npm audit should no longer report that specific finding. If it still appears, I'd check whether the registry or security scanner is using outdated advisory data before changing dependency versions. Also, the suggested override to I wouldn't run Official advisory: Could you rerun |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Running the npm audit command in the project revealed 5 high-severity vulnerabilities in the project's dependency tree.
The primary vulnerable package is braces, which is used indirectly by other packages, including micromatch, fast-glob, @next/eslint-plugin-next, and eslint-config-next.
Total vulnerabilities: 5 high severity
Primary affected package: braces
Vulnerability type: Denial of Service (DoS)
Potential impact: Stack exhaustion caused by deeply nested patterns
Automatic fix: Requires npm audit fix --force, which may introduce breaking changes
Recommended approach: Review the dependency versions and apply a compatible fix before forcing an upgrade.
Vulnerable Package: braces
Severity: High
Description:
The braces package is vulnerable to a stack-exhaustion denial-of-service attack when processing deeply nested patterns. An attacker may be able to trigger excessive resource consumption by supplying specially crafted input in applications that process untrusted patterns.
Security Advisory:
GHSA-vfj7-8cjw-p6xm – GitHub Security Advisory
Affected Dependency Chain
The audit report identifies the following dependency chain:
eslint-config-next
└── @next/eslint-plugin-next
└── fast-glob
└── micromatch
└── braces (vulnerable)
The packages higher in this chain depend on other packages that ultimately use the vulnerable braces package.
The vulnerability occurs because the installed dependency tree contains a version of braces affected by the reported security advisory.
The issue is detected by npm audit, which compares installed dependency versions against known security advisories.
The report also indicates that npm's proposed automatic fix would install eslint-config-next@14.2.35, potentially changing the project's dependency versions in a way that could affect compatibility.
Step 1: Check the Installed Versions
Run the following commands to inspect the relevant dependencies:
npm ls braces micromatch fast-glob eslint-config-next
This shows which versions are installed and how they are connected.
Step 2: Try a Non-Force Fix
Run:
npm audit fix
This attempts to resolve vulnerabilities using updates that do not require npm to make potentially breaking dependency changes.
Step 3: Check the Audit Report Again
After the fix completes, run:
npm audit
Also check whether the project still builds and passes its tests.
Step 4: Review the Next.js ESLint Configuration
If the vulnerability remains, inspect package.json and identify the installed versions of next and eslint-config-next.
Update related packages to compatible versions according to the project's Next.js version and the available security fixes. Avoid installing an arbitrary version without checking compatibility.
Step 5: Use Force Only After Reviewing the Changes
The command suggested by npm is:
npm audit fix --force
Warning: This can install versions outside the project's declared dependency ranges and may introduce breaking changes. Review the proposed changes and create a backup or Git commit before running it.
Afterward, run:
npm install
npm audit
npm run lint
npm run build
Run the last two commands if the corresponding scripts exist in package.json.
Additional information
Example
No response
All reactions