Vulnerability
CVE-2022-23476
Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method `Nokogiri::XML::Reader#attribute_hash`. This can lead to a null pointer exception when invalid markup is being parsed. For applications using `XML::Reader` to parse untrusted inputs, this may potentially be a vector for a denial of service attack. Users are advised to upgrade to Nokogiri `>= 1.13.10`. Users may be able to search their code for calls to either `XML::Reader#attributes` or `XML::Reader#attribute_hash` to determine if they are affected.
10 advisories report this vulnerability, across 6 ecosystems.
Advisories
-
ALPINE-CVE-2022-23476
Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method…
- ALPINE-EDGE-CVE-2022-23476
-
DEBIAN-CVE-2022-23476
Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method…
-
GHSA-qv4q-mr5r-qprj
Unchecked return value from xmlTextReaderExpand
-
SUSEVEX-CVE-2022-23476
Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method…
-
UBUNTU-CVE-2022-23476
Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method…
-
openSUSE-SU-2024:13440-1
ruby3.2-rubygem-nokogiri-1.15.4-1.1 on GA media
-
openSUSE-SU-2024:14174-1
ruby3.3-rubygem-nokogiri-1.15.5-1.5 on GA media
-
openSUSE-SU-2025:14697-1
ruby3.4-rubygem-nokogiri-1.18.2-1.1 on GA media
-
openSUSE-SU-2026:10356-1
ruby4.0-rubygem-nokogiri-1.18.9-1.4 on GA media