Project

General

Profile

Actions

Bug #39234

closed

CVE-2026-24001 nodejs-diff: denial of service vulnerability in parsePatch and applyPatch

Added by Zach Huntington-Meath 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Fixed in Releases:
Found in Releases:

Description

The diff (jsdiff) package's parsePatch and applyPatch functions accept patches whose filename headers contain the line break characters \r, \u2028, or \u2029, which causes parsePatch to enter an infinite loop.

This results in unbounded memory consumption until the process crashes, resulting in a potential DoS vulnerability. A large payload is not needed to trigger the vulnerability, so size limits on user input do not provide protection.

Update nodejs-diff to version 5.2.2 which includes the fix for this vulnerability.

Upstream fix PR:
https://github.com/kpdecker/jsdiff/pull/649

Security advisory:
https://github.com/kpdecker/jsdiff/security/advisories/GHSA-73rr-hh4g-fpgx

Actions #1

Updated by The Foreman Bot 3 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/10958 added
Actions #2

Updated by Zach Huntington-Meath 3 months ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/13357 added
Actions #3

Updated by Zach Huntington-Meath 3 months ago

  • Red Hat JIRA set to SAT-42008
Actions #4

Updated by The Foreman Bot 3 months ago

  • Fixed in Releases 3.19.0 added
Actions #5

Updated by Zach Huntington-Meath 3 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF