Skip to content

[agent] chore(deps): bump transitive diff to 4.0.4 (GHSA-73rr-hh4g-fpgx)#745

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
security/fix-diff-ghsa-73rr-hh4g-fpgx-8d10bb30f0003ea3
Draft

[agent] chore(deps): bump transitive diff to 4.0.4 (GHSA-73rr-hh4g-fpgx)#745
github-actions[bot] wants to merge 1 commit into
mainfrom
security/fix-diff-ghsa-73rr-hh4g-fpgx-8d10bb30f0003ea3

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Summary

Updates the diff transitive dependency from 4.0.24.0.4 in package-lock.json to address GHSA-73rr-hh4g-fpgx / CVE-2026-24001 (Dependabot alert #136).

Vulnerability

jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch — parsing patches with \r, \u2028, or \u2029 in filename headers can cause an infinite loop, consuming unlimited memory. Fixed in [email protected].

  • Severity: Low (CVSS 4.0: 2.7)
  • CWEs: CWE-400 (Uncontrolled Resource Consumption), CWE-1333 (Inefficient Regex Complexity)

Fix approach

diff is a transitive dependency: both sinon@9 (declares "diff": "^4.0.2") and ts-node@10 (declares "diff": "^4.0.1") include it as a nested dep. Since [email protected] satisfies both semver ranges, this is a lockfile-only update — no package.json changes were needed.

The lockfile previously resolved the nested diff to 4.0.2 (the version that was latest when the lockfile was last regenerated). npm update diff --package-lock-only refreshed those entries to 4.0.4.

Changed versions

Path Before After
node_modules/sinon/node_modules/diff 4.0.2 4.0.4
node_modules/ts-node/node_modules/diff 4.0.2 4.0.4

Closes Dependabot alert #136.

Generated by Dependabot remediation agent · ● 741.5K ·

Update sinon and ts-node nested diff dependency from 4.0.2 to 4.0.4
in the lockfile to address CVE-2026-24001 / GHSA-73rr-hh4g-fpgx.

Both sinon@9 (^4.0.2) and ts-node@10 (^4.0.1) declare semver ranges
that include 4.0.4, so this is a lockfile-only update.

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants