LiveActive security incident?Get immediate response
CVE Record

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`.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2026-24001 lets a small crafted patch crash applications that use jsdiff to parse patch text. The impact is availability only: no data theft or code execution is described. Business urgency is highest where internet-facing services accept patch files, diffs, filenames, or review content from users.

Executive priority

Prioritize remediation for public services that accept diffs, patch files, code review data, or user-supplied filenames. Internal-only tooling with trusted inputs is lower urgency, but still should be upgraded because the trigger is small and input size limits are not protective.

Technical view

jsdiff parsePatch before 8.0.3, 5.2.2, 4.0.4, and 3.5.1 can loop indefinitely when filename headers contain \r, U+2028, or U+2029, exhausting memory. applyPatch is affected only when passed a string patch because it calls parsePatch. A related ReDoS can occur in patch headers with the same characters.

Likely exposure

Likely exposed systems are JavaScript or Node.js applications using jsdiff parsePatch on user-provided patch strings, or applyPatch with string patch input. Applications only using other jsdiff methods are reported unaffected. Exposure can also exist when users control filenames used to generate patches.

Exploitation context

The bundle does not identify active exploitation, and KEV is false. The CVSS vector rates the issue network-reachable, low-complexity, unauthenticated, and no-user-interaction, but only for applications that expose affected parsing paths to attacker-controlled input.

Researcher notes

Key constraints are important: applyPatch is affected only for string patch arguments, and other library methods are stated unaffected. The denial-of-service condition is tied to specific line-break characters in filename headers; the lesser ReDoS involves patch headers. No source in the bundle proves exploitation in the wild.

Mitigation direction

  • Upgrade jsdiff to 8.0.3, 5.2.2, 4.0.4, or 3.5.1 as applicable.
  • If immediate upgrade is blocked, reject patches containing \r, U+2028, or U+2029 before parsing.
  • Avoid passing user-controlled patch strings to parsePatch or applyPatch.
  • Review vendor and distribution guidance for packaged or transitive jsdiff copies.
  • Monitor affected services for abnormal memory growth and process crashes.

Validation and detection

  • Inventory direct and transitive jsdiff versions in package lockfiles and deployed artifacts.
  • Search code for parsePatch and applyPatch calls that receive strings.
  • Trace whether patch text or filenames can be influenced by unauthenticated users.
  • Confirm deployed versions meet the fixed release thresholds.
  • Check dependency scanners and Red Hat VEX status for environment-specific applicability.
Prepared
Confidence
high
Sources
9

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-1333: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · low confidence lookup

CWE-400: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-24001 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
5Timeline events
2ADP providers
8Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: yesTechnical Impact: partial

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6redhat-SADP
2.7CVSS 4.0LowCVSS: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

Vulnerability scoring details

Base CVSS 4.0 score

2.7Low
CVSS 4.0 vector shape for CVE-2026-24001Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: 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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Made public.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. ADP timelineredhat-SADP

    Reported to Red Hat.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
redhat-SADPjsdiff: denial of service vulnerability in parsePatch and applyPatch
other:Red Hat severity ratingcvssV3_1
  • 2026-01-22T03:01:21.135Z: Reported to Red Hat.
  • 2026-01-22T02:23:44.059Z: Made public.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
kpdeckerjsdiff>= 6.0.0, < 8.0.3, >= 5.0.0, < 5.2.2, >= 4.0.0, < 4.0.4, < 3.5.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-1333 · source CWE mapping

Inefficient Regular Expression Complexity

Inefficient Regular Expression Complexity represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-400 · source CWE mapping

Uncontrolled Resource Consumption

Uncontrolled Resource Consumption represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.