Skip to content

Conversation

@drzippie
Copy link

Summary

Upgrades the diff package from v4 to v8.0.3 to address security vulnerability GHSA-73rr-hh4g-fpgx.

Security Advisory

  • ID: GHSA-73rr-hh4g-fpgx
  • Severity: Low
  • Issue: DoS vulnerability in parsePatch() and applyPatch() - line break characters can cause infinite loops or ReDoS
  • Affected versions: < 8.0.3
  • Patched version: 8.0.3
  • Note: ts-node only uses diffLines() which is NOT affected by this vulnerability

Changes

  • Updated diff from ^4.0.1 to ^8.0.3
  • Removed @types/diff (v8 includes built-in TypeScript types)

Impact

  • Only diffLines() is used in src/repl.ts for REPL code execution
  • The API is backward compatible - no code changes needed
  • All REPL tests pass locally

Security fix: Upgrades the `diff` package from v4.0.1 to v8.0.3 to address
security vulnerability GHSA-73rr-hh4g-fpgx (DoS in parsePatch/applyPatch).

Changes:
- Updated diff from ^4.0.1 to ^8.0.3
- Removed @types/diff (v8 includes built-in TypeScript types)

Note: ts-node only uses diffLines() which is NOT affected by this vulnerability,
but upgrading resolves npm audit warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant