For your digest
diff: jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch
It touches something Phylax follows. No evidence of use yet.
Does it affect what I run?
diff (npm)
Checked in your browser. The version you type is not sent anywhere.
Who is affected
- diff (npm): from 6.0.0, before 8.0.3
- diff (npm): from 5.0.0, before 5.2.2
- diff (npm): from 4.0.0, before 4.0.4
- diff (npm): every version, before 3.5.1
The fix
diff (npm) fixed in 8.0.3
npmnpm install diff@8.0.3pnpmpnpm add diff@8.0.3yarnyarn add diff@8.0.3bunbun add diff@8.0.3Check what is installednpm ls diffPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency diff to 8.0.3 or the nearest later release, to fix CVE-2026-24001. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.diff (npm) fixed in 5.2.2
npmnpm install diff@5.2.2pnpmpnpm add diff@5.2.2yarnyarn add diff@5.2.2bunbun add diff@5.2.2Check what is installednpm ls diffPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency diff to 5.2.2 or the nearest later release, to fix CVE-2026-24001. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.diff (npm) fixed in 4.0.4
npmnpm install diff@4.0.4pnpmpnpm add diff@4.0.4yarnyarn add diff@4.0.4bunbun add diff@4.0.4Check what is installednpm ls diffPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency diff to 4.0.4 or the nearest later release, to fix CVE-2026-24001. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.diff (npm) fixed in 3.5.1
npmnpm install diff@3.5.1pnpmpnpm add diff@3.5.1yarnyarn add diff@3.5.1bunbun add diff@3.5.1Check what is installednpm ls diffPaste into Cursor, Lovable or Claude CodeUpgrade the npm dependency diff to 3.5.1 or the nearest later release, to fix CVE-2026-24001. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
Fix commands generated from the advisory's versions. No model wrote them.
In plain words
Brief pending: here are the facts and the fix. The explanation in plain words follows when it has been written and checked.
Evidence
No evidence that it is being used, or can be. It is listed because of what it affects.
Timeline
- First published here, as "For your digest".