CVE catalog

CVE-2021-41098

ruby-nokogiri: CVE-2021-41098

[CVE catalog]

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

Nokogiri is a Rubygem providing HTML, XML, SAX, and Reader parsers with XPath and CSS selector support. In Nokogiri v1.12.4 and earlier, on JRuby only, the SAX parser resolves external entities by default. Users of Nokogiri on JRuby who parse untrusted documents using any of these classes are affected: Nokogiri::XML::SAX::Parse, Nokogiri::HTML4::SAX::Parser or its alias Nokogiri::HTML::SAX::Parser, Nokogiri::XML::SAX::PushParser, and Nokogiri::HTML4::SAX::PushParser or its alias Nokogiri::HTML::SAX::PushParser. JRuby users should upgrade to Nokogiri v1.12.5 or later to receive a patch for this issue. There are no workarounds available for v1.12.4 or earlier. CRuby users are not 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-1not affected
Debianruby-nokogiriforky1.19.4+dfsg-1not affected
Debianruby-nokogiritrixie1.18.2+dfsg-1not affected
Debianruby-nokogiribookworm1.13.10+dfsg-2not affected
Opensuserubygem-nokogiritumbleweed1.12.5-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-nokogirisourcesidNot affectedunimportantNot reportedNot reported
Debianruby-nokogirisourceforkyNot affectedunimportantNot reportedNot reported
Debianruby-nokogirisourcetrixieNot affectedunimportantNot reportedNot reported
Debianruby-nokogirisourcebookwormNot affectedunimportantNot reportedNot reported
Opensuserubygem-nokogirirpmtumbleweed1.12.5-1.1Not reportedOPENSUSE-SU-2024:11577-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [rubygem-nokogiri]

    Details (1)
    • 1.19.4-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 1.12.5-1.1

      Version impact unknown

      dsa · rubygem-nokogiri · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • [ruby-nokogiri]Not affected

    Source package: [ruby-nokogiri]

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

      Not affected

      dsa · ruby-nokogiri · debian · bookworm

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

      Not affected

      dsa · ruby-nokogiri · debian · bookworm

Observed:

References