Skip to content
Ubuntu Nokogiri Updates Fix Resource and Memory Issues in Applications

Ubuntu Nokogiri Updates Fix Resource and Memory Issues in Applications

Linuxsecurity •LinuxSecurity Advisories • December 1, 2026

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 ... Read the Full Advisory

Several security issues were fixed in Nokogiri.

Software Description:

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

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

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.

CVE-2022-24836, CVE-2026-57235, CVE-2026-57236, CVE-2026-57435,

Ubuntu Security Notice USN-9363-1

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.

Linux Security - Your source for Top Linux News, Advisories, HOWTOs and Feature Releases