Skip to content
OpenAdvisories
High · 7.5 CVE-2022-24839 EUVD-2023-1761GHSA-9849-p7jc-9rmv

Uncontrolled Resource Consumption in org.cyberneko.html (nokogiri fork)

Published Apr 11, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

org.cyberneko.html is an html parser written in Java. The fork of `org.cyberneko.html` used by Nokogiri (Rubygem) raises a `java.lang.OutOfMemoryError` exception when parsing ill-formed HTML markup. Users are advised to upgrade to `>= 1.9.22.noko2`. Note: The upstream library `org.cyberneko.html` is no longer maintained. Nokogiri uses its own fork of this library located at https://github.com/sparklemotion/nekohtml and this CVE applies only to that fork. Other forks of nekohtml may have a similar vulnerability.

Affected products

VendorProductAffectedFixed
sparklemotion nekohtml < 1.9.22.noko2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nekohtml 1.9.22.noko2-0.1 —
Debian 13 nekohtml 1.9.22.noko2-0.1 —
Debian 12 nekohtml 1.9.22.noko2-0.1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 nekohtml No fix yet —
Ubuntu 26.04 LTS nekohtml No fix yet —
Ubuntu 25.10 nekohtml No fix yet —
Ubuntu 24.04 LTS nekohtml No fix yet —
Ubuntu 22.04 LTS nekohtml No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS nekohtml No fix yet —
Ubuntu 18.04 LTS nekohtml No fix yet —
Ubuntu 16.04 LTS nekohtml No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ruby3.2-rubygem-nokogiri 1.13.9-1.7 openSUSE-SU-2024:13165-1
openSUSE Tumbleweed rubygem-nokogiri 1.13.4-1.1 openSUSE-SU-2026:10356-1, openSUSE-SU-2025:14697-1, openSUSE-SU-2024:14174-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.nokogiri:nekohtml < 1.9.22.noko2 1.9.22.noko2 GHSA-9849-p7jc-9rmv

Advisories 11

References