CVE catalog

CVE-2022-23476

ruby-nokogiri: CVE-2022-23476

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.82% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-nokogirisid1.19.4+dfsg-1fixed
Debianruby-nokogiriforky1.19.4+dfsg-1fixed
Debianruby-nokogiritrixie1.18.2+dfsg-1fixed
Debianruby-nokogiribookworm1.13.10+dfsg-2fixed
Opensuseruby3.2-rubygem-nokogiritumbleweed1.15.4-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-nokogirisourcesid1.13.10+dfsg-1not yet assignedNot reportedNot reported
Debianruby-nokogirisourceforky1.13.10+dfsg-1not yet assignedNot reportedNot reported
Debianruby-nokogirisourcetrixie1.13.10+dfsg-1not yet assignedNot reportedNot reported
Debianruby-nokogirisourcebookworm1.13.10+dfsg-1not yet assignedNot reportedNot reported
Opensuseruby3.2-rubygem-nokogirirpmtumbleweed1.15.4-1.1Not reportedOPENSUSE-SU-2024:13440-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [ruby-nokogiri]

    Details (2)
    • 1.13.10+dfsg-2+b1 · amd64 · bookworm

      Fixed · Fixed: 1.13.10+dfsg-1

      dsa · ruby-nokogiri · debian · bookworm

    • 1.13.10+dfsg-2+b1 · arm64 · bookworm

      Fixed · Fixed: 1.13.10+dfsg-1

      dsa · ruby-nokogiri · debian · bookworm

Observed:

References