CVE-2021-41098
published high CVSS 3.0 · 7.5Improper Restriction of XML External Entity Reference (XXE) in Nokogiri on JRuby
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sparklemotion | — | nokogiri< 1.12.5 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-nokogiriaarch64 | Advisory build | 1.12.5-1.1 | OPENSUSE-SU-2024:11577-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-nokogirippc64le | Advisory build | 1.12.5-1.1 | OPENSUSE-SU-2024:11577-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-nokogiris390x | Advisory build | 1.12.5-1.1 | OPENSUSE-SU-2024:11577-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-nokogirix86_64 | Advisory build | 1.12.5-1.1 | OPENSUSE-SU-2024:11577-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-nokogiriaarch64 | Advisory build | 1.12.5-1.1 | OPENSUSE-SU-2024:11577-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-nokogirippc64le | Advisory build | 1.12.5-1.1 | OPENSUSE-SU-2024:11577-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-nokogiris390x | Advisory build | 1.12.5-1.1 | OPENSUSE-SU-2024:11577-1 |
Show 21 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-nokogirix86_64 | Advisory build | 1.12.5-1.1 | OPENSUSE-SU-2024:11577-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-nokogiriaarch64 | Advisory build | 1.13.3-1.1 | OPENSUSE-SU-2024:11912-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-nokogirippc64le | Advisory build | 1.13.3-1.1 | OPENSUSE-SU-2024:11912-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-nokogiris390x | Advisory build | 1.13.3-1.1 | OPENSUSE-SU-2024:11912-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-nokogirix86_64 | Advisory build | 1.13.3-1.1 | OPENSUSE-SU-2024:11912-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogiriaarch64 | Advisory build | 1.13.9-1.7 | OPENSUSE-SU-2024:13165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogirippc64le | Advisory build | 1.13.9-1.7 | OPENSUSE-SU-2024:13165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogiris390x | Advisory build | 1.13.9-1.7 | OPENSUSE-SU-2024:13165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogirix86_64 | Advisory build | 1.13.9-1.7 | OPENSUSE-SU-2024:13165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogiriaarch64 | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogirippc64le | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogiris390x | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogirix86_64 | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogiriaarch64 | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogirippc64le | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogiris390x | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogirix86_64 | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogiriaarch64 | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogirippc64le | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogiris390x | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogirix86_64 | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sparklemotion | nokogiri | < 1.12.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-611 CWE-611: Improper Restriction of XML External Entity Reference
References
2Provider assertions
2GitHub_M · cna
Improper Restriction of XML External Entity Reference (XXE) in Nokogiri on JRuby
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d5593b550286d6dd4cf35c95c7372d3545cd58ca09de4854096022ee73e036ea
- Ingested
- 23 Sep 2026, 07:56:07 UTC
- Source record
- Official CVE record