GHSA-gx8x-g87m-h5q6: Denial of Service (DoS) in Nokogiri on JRuby
7.5
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
4/11/2022
Updated
1/11/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
nokogiri | rubygems | < 1.13.4 | 1.13.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper EOF handling in HTML processing instruction parsing. The commit a800fce
shows the fix specifically modifies the scanPI
method in HTMLScanner.java
to check for EOF (c == -1) in addition to '>', preventing infinite loops. This matches the CWE-400 description of uncontrolled resource consumption through malformed HTML inputs.