Skip to content

Security vulnerability in diff package #2170

Open

Description

@raheel-iso365

There is a security vulnerability in the version of the diff package used by ts-node.

Search Terms

diff

Expected Behavior

Actual Behavior

npm audit
# npm audit report

diff  <8.0.3
jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch - https://github.com/advisories/GHSA-73rr-hh4g-fpgx
node_modules/diff
  ts-node  <=1.4.3 || >=1.7.2
  Depends on vulnerable versions of diff

Steps to reproduce the problem

npm audit

Minimal reproduction

Specifications

  • ts-node version:
  • node version: 10.9.2
  • TypeScript version: 5.9.3
  • tsconfig.json, if you're using one:
{}
  • package.json:
{
.
.
"ts-node": "^10.9.2",
"typescript": "^5.7.3",
.
.

}
  • Operating system and version:
  • If Windows, are you using WSL or WSL2?:

Activity

  1. tats-u commented on Jan 20, 2026

    @tats-u

    Still v4 even in main...

    "diff": "^4.0.1",

  2. alumni commented on Jan 20, 2026

    @alumni

    diff@4.0.4 will be released soon. No changes necessary in this repo.

  3. tats-u commented on Jan 20, 2026

    @tats-u

    It was successfully shipped.
    It is funny that the most popular major version of diff is not 8.x but 4.x.

  4. kpatsis commented on Jan 20, 2026

    @kpatsis

    There is a PR open that updates diff to latest version: #2169

  5. themrdaleyoung commented on May 8, 2026

    @themrdaleyoung

    diff@4.0.4 will be released soon. No changes necessary in this repo.

    Can we get this bumped to 4.04 by any chance now that it's out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions