fix(deps): bump diff to ^9.0.0 to clear GHSA-73rr-hh4g-fpgx (#1588)#1599
Open
genisis0x wants to merge 1 commit into
Open
fix(deps): bump diff to ^9.0.0 to clear GHSA-73rr-hh4g-fpgx (#1588)#1599genisis0x wants to merge 1 commit into
genisis0x wants to merge 1 commit into
Conversation
…#1588) `npm audit` flags diff@7.0.0 with a low-severity DoS in parsePatch/applyPatch (GHSA-73rr-hh4g-fpgx, affected 6.0.0–8.0.2, fixed in 9.0.0). gstack uses diff against local content the user controls so practical risk is low, but the advisory surfaces on every audit pass and blocks clean supply-chain runs for users vendoring gstack. The 9.0.0 breaking changes only touch parsePatch / applyPatch / createPatch and the ESM/CJS exports. Both call sites in this repo (browse/src/snapshot.ts:568, browse/src/meta-commands.ts:712) use `Diff.diffLines`, whose signature and return shape are unchanged in v9, so this is a no-op at runtime.
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.
Closes #1588.
Summary
npm auditflagsdiff@7.0.0with a low-severity DoS inparsePatch/applyPatch(GHSA-73rr-hh4g-fpgx, affected 6.0.0–8.0.2, fixed in 9.0.0). gstack usesdiffagainst local content the user controls so practical risk is low, but the advisory shows on every audit pass and blocks clean supply-chain runs for users who vendor gstack.Compatibility check
diff@9's breaking changes only touchparsePatch/applyPatch/createPatchand the ESM/CJS exports. Call sites in this repo:browse/src/snapshot.ts:568—Diff.diffLines(lastSnapshot, snapshotText)browse/src/meta-commands.ts:712—Diff.diffLines(text1, text2)diffLinessignature + return shape are unchanged in v9, so no runtime impact. Smoke-tested locally:Test plan
bun install— clean resolve, single package updatedbun test— same pre-existingsidebar-ux.test.tsfailures as main (unrelated; tests grep server.ts for symbols already removed); no new failures introducedDiff.diffLinesround-trip against v9 confirmed identical outputHappy to bundle this into the next fix wave or land standalone, whichever's lighter on your end.