Skip to content
OpenAdvisories
Low · 1.7 CVE-2026-57434 EUVD-2026-39424GHSA-9cv2-cfxc-v4v2

Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes

Published Jun 25, 2026 · Updated Jun 25, 2026 · Assigned by GitHub_M

Description

Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri contains a bug when calling certain methods on allocated-but-uninitialized native wrapper classes that inherit from Nokogiri::XML::Node. This caused a NULL pointer dereference that could crash the process. This vulnerability is fixed in 1.19.4.

Affected products

VendorProductAffectedFixed
sparklemotion nokogiri < 1.19.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-nokogiri 1.19.4+dfsg-1 —
Debian 13 ruby-nokogiri No fix yet —
Debian 12 ruby-nokogiri No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ruby-nokogiri No fix yet —
Ubuntu 26.04 LTS ruby-nokogiri No fix yet —
Ubuntu 25.10 ruby-nokogiri No fix yet —
Ubuntu 24.04 LTS ruby-nokogiri No fix yet —
Ubuntu 18.04 LTS ruby-nokogiri No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ruby-nokogiri No fix yet —
Ubuntu Pro 22.04 LTS ruby-nokogiri No fix yet —
Ubuntu Pro 20.04 LTS ruby-nokogiri No fix yet —
Ubuntu Pro 14.04 LTS ruby-nokogiri No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 ruby-nokogiri 1.19.4-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 rubygem-nokogiri 1.19.4-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems nokogiri < 1.19.4 1.19.4 GHSA-9cv2-cfxc-v4v2

References