USN-9363-1: Nokogiri vulnerabilities

Published Dec 1, 2026
·
Updated

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

10 affected componentsFixes available
All of the following
ubuntu/ruby-nokogiri<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=22.04
All of the following
ubuntu/ruby-nokogiri<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/ruby-nokogiri<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/ruby-nokogiri<1.6.7.2-3ubuntu0.1+esm1
1.6.7.2-3ubuntu0.1+esm1
Ubuntu Ubuntu=16.04
All of the following
ubuntu/ruby-nokogiri<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=14.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/ruby-nokogiri to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  2. Upgrade

    Upgrade ubuntu/ruby-nokogiri to a version that resolves this vulnerability.

    Fixed in 1.6.7.2-3ubuntu0.1+esm1

Event History

Dec 1, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203