Home / mailingsPDF  

[USN-9363-1] Nokogiri vulnerabilities

Posted on 02 December 2026
Ubuntu Security

==========================================================================Ubuntu Security Notice USN-9363-1
December 01, 2026

ruby-nokogiri vulnerabilities
==========================================================================
A security issue affects these releases of Ubuntu and its derivatives:

- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 16.04 LTS
- Ubuntu 14.04 LTS

Summary:

Several security issues were fixed in Nokogiri.

Software Description:
- ruby-nokogiri: HTML, XML, SAX, and Reader parser for Ruby

Details:

It was discovered that Nokogiri used an inefficient regular expression when
detecting the encoding of HTML documents. An attacker could possibly use
this issue to cause Nokogiri to consume excessive resources, leading to a
denial of service. (CVE-2022-24836)

It was discovered that Nokogiri incorrectly checked the bounds of indexes
into node sets, leading to an out-of-bounds read. An attacker could
possibly use this issue to cause Nokogiri to crash, resulting in a denial
of service. (CVE-2026-57235)

It was discovered that Nokogiri incorrectly handled setting an invalid
document encoding, leading to a use-after-free. An attacker could possibly
use this issue to cause Nokogiri to crash, resulting in a denial of
service, or obtain sensitive information. (CVE-2026-57236)

It was discovered that Nokogiri incorrectly handled replacing the value of
an XML attribute, leading to a use-after-free. An attacker could possibly
use this issue to cause Nokogiri to crash, resulting in a denial of
service. (CVE-2026-57435)

It was discovered that Nokogiri used inefficient regular expressions when
tokenizing CSS selectors. An attacker could possibly use this issue to
cause Nokogiri to consume excessive resources, leading to a denial of
service. (CVE-2026-79770)

Update instructions:

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 22.04 LTS
ruby-nokogiri 1.13.1+dfsg-2ubuntu0.1~esm2
Available with Ubuntu Pro

Ubuntu 20.04 LTS
ruby-nokogiri 1.10.7+dfsg1-2ubuntu0.1~esm3
Available with Ubuntu Pro

Ubuntu 18.04 LTS
ruby-nokogiri 1.8.2-1ubuntu0.1+esm1
Available with Ubuntu Pro

Ubuntu 16.04 LTS
ruby-nokogiri 1.6.7.2-3ubuntu0.1+esm1
Available with Ubuntu Pro

Ubuntu 14.04 LTS
ruby-nokogiri 1.6.1+ds-1ubuntu0.1~esm2
Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References:
https://ubuntu.com/security/notices/USN-9363-1
CVE-2022-24836, CVE-2026-57235, CVE-2026-57236, CVE-2026-57435,
CVE-2026-79770

--===============2616350440286160117==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature

 

TOP