Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-41098

published high CVSS 3.0 · 7.5

Improper Restriction of XML External Entity Reference (XXE) in Nokogiri on JRuby

Published
27 Sep 2021, 19:35:11 UTC
Updated
04 Aug 2024, 02:59:31 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

6

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.

Affected vendor and product assertions
VendorProductVersion statusSource
sparklemotion nokogiri < 1.12.5 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-611 CWE-611: Improper Restriction of XML External Entity Reference (GitHub_M · cna)

References

2

Provider assertions

2

GitHub_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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected