USN-9363-1: Nokogiri vulnerabilities
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)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/ruby-nokogirito a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/ruby-nokogirito a version that resolves this vulnerability.Fixed in 1.6.7.2-3ubuntu0.1+esm1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which processing operations are implicated by the reported issues?
The issues involve HTML encoding detection, node-set index handling, setting document encodings, replacing XML attribute values, and CSS selector tokenization. Applications that process untrusted content through these operations are the most relevant to assess.
Which issue may have an impact beyond denial of service?
CVE-2026-57236, involving invalid document encodings, may allow a crash or disclosure of sensitive information because it can lead to a use-after-free. The other described issues are reported as denial-of-service risks.