# Ubuntu releases security updates for Nokogiri Ruby parser to address multiple CVEs

> **Key takeaway:** Multiple vulnerabilities in the Nokogiri Ruby gem, including use-after-free and denial of service flaws, have been patched across several Ubuntu LTS releases.

**Published:** 2026-12-01T21:12:19+00:00 
**Source:** Ubuntu Security & Release Notices 
**Category:** distro-news 
**Canonical URL:** https://fosswire.org/news/ubuntu-releases-security-updates-for-nokogiri-ruby-parser-to 

## Summary
Ubuntu has issued security notices (USN-9363-1) to address several vulnerabilities found in the Nokogiri package, which provides HTML, XML, SAX, and Reader parsing capabilities for the Ruby programming language. The identified flaws range from inefficient regular expressions to memory management errors that could lead to system instability or data exposure.

These security updates affect a wide range of Ubuntu Long Term Support (LTS) versions, including 22.04, 20.04, 18.04, 16.04, and 14.04. While some fixes are available through standard updates, many require Ubuntu Pro via Expanded Security Maintenance (ESM) to access the patched versions of the ruby-nokogiri package.

## Vulnerability breakdown and affected subsystems
- **Memory Safety Issues:** CVE-2026-57236 and CVE-2026-57435 involve use-after-free vulnerabilities triggered by invalid document encoding settings and XML attribute replacements, potentially causing crashes or sensitive information disclosure.
- **Denial of Service (DoS) via Regex:** CVE-2022-24836 and CVE-2026-79770 involve inefficient regular expressions used during HTML encoding detection and CSS selector tokenization, which can lead to excessive resource consumption.
- **Out-of-bounds Access:** CVE-2026-57235 identifies an error in how the parser checks bounds for indexes into node sets, which can result in an out-of-bounds read and subsequent service crashes.

## Why it matters
Because Nokogiri is a fundamental parsing library for the Ruby ecosystem, these vulnerabilities pose a risk to any web applications or automated tools running on Ubuntu that process untrusted XML or HTML input. Developers and system administrators using older LTS releases must ensure they have Ubuntu Pro enabled to receive these critical security patches.