GHSA-gx8x-g87m-h5q6
HIGH 7.5CVSS 3.1Denial of Service (DoS) in Nokogiri on JRuby
Summary
Nokogiri v1.13.4 updates the vendored org.cyberneko.html library to 1.9.22.noko2 which addresses CVE-2022-24839. That CVE is rated 7.5 (High Severity).
See GHSA-9849-p7jc-9rmv for more information.
Please note that this advisory only applies to the JRuby implementation of Nokogiri < 1.13.4.
Mitigation
Upgrade to Nokogiri >= 1.13.4.
Impact
CVE-2022-24839 in nekohtml
- Severity: High 7.5
- Type: CWE-400 Uncontrolled Resource Consumption
- Description: The fork of
org.cyberneko.htmlused by Nokogiri (Rubygem) raises ajava.lang.OutOfMemoryErrorexception when parsing ill-formed HTML markup. - See also: GHSA-9849-p7jc-9rmv
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | RubyGems | nokogiri | < 1.13.4 | 1.13.4 |
References
- https://github.com/sparklemotion/nekohtml/security/advisories/GHSA-9849-p7jc-9rmv · WEB
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-gx8x-g87m-h5q6 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24839 · ADVISORY
- https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d · WEB
- https://github.com/sparklemotion/nokogiri · PACKAGE
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.4 · WEB
- https://groups.google.com/g/ruby-security-ann/c/vX7qSjsvWis/m/TJWN4oOKBwAJ?utm_medium=email&utm_source=footer · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Apr 2022)