CVE-2021-41098: nokogiri
Vulnerability summary
CVE-2021-41098 is a high (CVSS 7.5) vulnerability in nokogiri. EPSS estimates a 1.46% chance of exploitation in the next 30 days, higher than 73.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 5 · Related 5Timeline
- 27-09-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 3 sources · 3 versions- OSV · RubygemsEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.46%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
+0.01 pp
From 1.45% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Nokogiri1 product
- nokogiri< 1.12.5
Opensuse1 product
- rubygem-nokogiri&distro=openSUSE Tumbleweed< 1.12.5-1.1
RubyGems1 product
- nokogiri< 1.12.5
Sparklemotion1 product
- nokogiri< 1.12.5
4 vendors · 4 products
References
6 links- github.com/sparklemotion/nokogiri/security/advisories/GHSA-2rr5-8q37-2w7hX Refsource CONFIRMWEBThird Party Advisory
- github.com/sparklemotion/nokogiri/commit/5bf729ff3cc84709ee3c3248c981584088bf9f6dX Refsource MISCWEBPatchThird Party Advisory