Home / kpdecker / jsdiff / CVE-2026-24001
CVE-2026-24001: is it exploited, and which versions of kpdecker jsdiff are affected and fixed?
CVE-2026-24001 is a denial of service (uncontrolled resource consumption) vulnerability in kpdecker jsdiff. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:39 UTC). Affected: diff from 6.0.0 before 8.0.3, diff from 5.0.0 before 5.2.2, diff from 4.0.0 before 4.0.4 and 1 more (GitHub advisory GHSA-73rr-hh4g-fpgx). Fixed in 8.0.3, 5.2.2, 4.0.4 and 3.5.1 (GitHub advisory GHSA-73rr-hh4g-fpgx). Severity: Low (2.7, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:39 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:14 UTC.
What is CVE-2026-24001?
jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch
jsdiff is a JavaScript text differencing implementation. Prior to versions 8.0.3, 5.2.2, 4.0.4, and 3.5.1, attempting to parse a patch whose filename headers contain the line break characters `\r`, `\u2028`, or `\u2029` can cause the `parsePatch` method to enter an infinite loop. It then consumes memory without limit until the process crashes due to running out of memory. Applications are therefore likely to be vulnerable to a denial-of-service attack if they call `parsePatch` with a user-provided patch as input. A large payload is not needed to trigger the vulnerability, so size limits on user input do not provide any protection. Furthermore, some applications may be vulnerable even when calling `parsePatch` on a patch generated by the application itself if the user is nonetheless able to control the filename headers (e.g. by directly providing the filenames of the files to be diffed). The `applyPatch` method is similarly affected if (and only if) called with a string representation of a patch as an argument, since under the hood it parses that string using `parsePatch`. Other methods of the library are unaffected. Finally, a second and lesser interdependent bug - a ReDOS - also exhibits when those same line break characters are present in a patch's *patch* header (also known as its "leading garbage"). A maliciously-crafted patch header of length *n* can take `parsePatch` O(*n*³) time to parse. Versions 8.0.3, 5.2.2, 4.0.4, and 3.5.1 contain a fix. As a workaround, do not attempt to parse patches that contain any of these characters: `\r`, `\u2028`, or `\u2029`.
From the CVE record by GitHub_M, last updated July 15, 2026, 01:17 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| kpdecker | jsdiff | >= 6.0.0, < 8.0.3 >= 5.0.0, < 5.2.2 >= 4.0.0, < 4.0.4 < 3.5.1 |
As the CVE record by GitHub_M states it, last updated July 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | diff | >= 6.0.0, < 8.0.3 | 8.0.3 | GHSA-73rr-hh4g-fpgx |
| npm | diff | >= 5.0.0, < 5.2.2 | 5.2.2 | GHSA-73rr-hh4g-fpgx |
| npm | diff | >= 4.0.0, < 4.0.4 | 4.0.4 | GHSA-73rr-hh4g-fpgx |
| npm | diff | < 3.5.1 | 3.5.1 | GHSA-73rr-hh4g-fpgx |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 30, 2026. Summary: jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| kpdecker | jsdiff | before 3.5.1 | application |
| kpdecker | jsdiff | from 4.0.0 before 4.0.4 | application |
| kpdecker | jsdiff | from 5.0.0 before 5.2.2 | application |
| kpdecker | jsdiff | from 6.0.0 before 8.0.3 | application |
NVD analysis (status Modified), last modified July 15, 2026, 02:18 UTC.
How severe is CVE-2026-24001?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.7 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | redhat-SADP |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-24001 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, January 22, 2026)
- EPSS
- 0.62% probability of exploitation activity in the next 30 days, percentile 51.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/kpdecker/jsdiff/security/advisories/GHSA-73rr-hh4g-fpgx x_refsource_CONFIRM
- https://github.com/kpdecker/jsdiff/issues/653 x_refsource_MISC
- https://github.com/kpdecker/jsdiff/pull/649 x_refsource_MISC
- https://github.com/kpdecker/jsdiff/commit/15a1585230748c8ae6f8274c202e0c87309142f5 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-24001 vdb-entry, x_refsource_REDHAT
- RHBZ#2431930 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24001.json x_sadp-csaf-vex
When was it published, and where is the official record?
- Reserved
- January 19, 2026
- Published
- January 22, 2026, 02:23 UTC
- CVE record updated
- July 15, 2026, 01:17 UTC by GitHub_M
- NVD
- Modified, last modified July 15, 2026, 02:18 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:14 UTC; KEV December 3, 2026, 18:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-24001
Is CVE-2026-24001 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:39 UTC. FIRST's EPSS gives it a 0.62% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of kpdecker jsdiff are affected by CVE-2026-24001?
diff from 6.0.0 before 8.0.3, diff from 5.0.0 before 5.2.2, diff from 4.0.0 before 4.0.4 and diff before 3.5.1, per the GitHub advisory GHSA-73rr-hh4g-fpgx. The tables above give every range the sources list.
Which version fixes CVE-2026-24001?
8.0.3, 5.2.2, 4.0.4 and 3.5.1, per the GitHub advisory GHSA-73rr-hh4g-fpgx. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-24001?
Low (2.7, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-24001?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.