CVE-2021-41098

Published on: 09/27/2021 12:00:00 AM UTC

Last Modified on: 10/06/2021 08:17:00 PM UTC

CVE-2021-41098 - advisory for GHSA-2rr5-8q37-2w7h

Source: Mitre Source: Nist Print: PDF PDF
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Certain versions of Nokogiri from Nokogiri contain the following vulnerability:

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.

  • CVE-2021-41098 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as HIGH severity.
  • Affected Vendor/Software: URL Logo sparklemotion - nokogiri version < 1.12.5

CVSS3 Score: 7.5 - HIGH

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
NETWORK LOW NONE NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED HIGH NONE NONE

CVSS2 Score: 5 - MEDIUM

Access
Vector
Access
Complexity
Authentication
NETWORK LOW NONE
Confidentiality
Impact
Integrity
Impact
Availability
Impact
PARTIAL NONE NONE

CVE References

Description Tags Link
Improper Restriction of XML External Entity Reference (XXE) in Nokogiri on JRuby · Advisory · sparklemotion/nokogiri · GitHub github.com
text/html
URL Logo CONFIRM github.com/sparklemotion/nokogiri/security/advisories/GHSA-2rr5-8q37-2w7h
Merge pull request #2328 from sparklemotion/flavorjones-GHSA-2rr5-8q3… · sparklemotion/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/sparklemotion/nokogiri/commit/5bf729ff3cc84709ee3c3248c981584088bf9f6d

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationNokogiriNokogiriAllAllAllAll
  • cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @rubylandnews RubySec ➜ CVE-2021-41098 (nokogiri): Improper Restriction of XML External Entity Reference (XXE) in Nokogiri on… rubysec.com/advisories/CVE… 2021-09-27 21:24:32
Twitter Icon @LinInfoSec Jruby - CVE-2021-41098: github.com/sparklemotion/… 2021-09-27 23:01:20
© CVE.report 2021 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report