Repository navigation
fix: patch flatted CVE-2026-32141 unbounded recursion DoS - #27
Merged
Merged
Conversation
Add pnpm override for flatted >=3.4.0 to resolve Dependabot alert #78. The vulnerability allows a crafted payload to crash Node.js via unbounded recursion in flatted.parse(). The transitive dependency chain is: eslint → file-entry-cache → flat-cache → flatted. flat-cache@4.0.1 declares flatted@^3.2.9, which is semver-compatible with the patched 3.4.0+, so the override safely forces resolution to the fixed version (3.4.2) without breaking the dependency contract.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves Dependabot alert #78.
Summary
Adds a pnpm override for
flatted >=3.4.0to fix CVE-2026-32141 (HIGH, CVSS 7.5) — an unbounded recursion DoS inflatted.parse()that can crash Node.js with a single crafted payload.Details
The transitive dependency chain is:
flat-cache@4.0.1declaresflatted@^3.2.9, which is semver-compatible with3.4.0+, so the override safely forces resolution to the patched version (3.4.2) without breaking the dependency contract. This follows the existing override pattern used forserialize-javascriptanddiff.Changes
"flatted": ">=3.4.0"topnpm.overridesflatted@3.3.4→flatted@3.4.2)All 38 tests pass ✅