ADVISORIES

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…

    CVE-2022-23476 Alpine Updated 20 November 2026
  • ALPINE-EDGE-CVE-2022-23476
    CVE-2022-23476 Alpine Updated 18 November 2026
  • 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…

    CVE-2022-23476 Debian Updated 20 November 2026
  • GHSA-qv4q-mr5r-qprj

    Unchecked return value from xmlTextReaderExpand

    High CVE-2022-23476 RubyGems Updated 8 November 2023
  • 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…

    Important CVE-2022-23476 SUSE Updated 1 November 2026
  • 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…

    CVE-2022-23476 Ubuntu Updated 18 July 2025
  • openSUSE-SU-2024:13440-1

    ruby3.2-rubygem-nokogiri-1.15.4-1.1 on GA media

    CVE-2022-23476CVE-2022-34169CVE-2023-29469 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14174-1

    ruby3.3-rubygem-nokogiri-1.15.5-1.5 on GA media

    CVE-2013-2877CVE-2014-0191CVE-2015-1819CVE-2015-5312 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:14697-1

    ruby3.4-rubygem-nokogiri-1.18.2-1.1 on GA media

    CVE-2013-2877CVE-2014-0191CVE-2015-1819CVE-2015-5312 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:10356-1

    ruby4.0-rubygem-nokogiri-1.18.9-1.4 on GA media

    CVE-2013-2877CVE-2014-0191CVE-2015-1819CVE-2015-5312 openSUSE Updated 14 March 2026

References