Access Control Bypass Affecting nokogiri package, versions <1.10.3


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 0.26% (66th percentile)
Expand this section
NVD
9.8 critical
Expand this section
Red Hat
6.3 medium
Expand this section
SUSE
6.6 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-NOKOGIRI-3357693
  • published 9 Mar 2023
  • disclosed 9 Mar 2023
  • credit Unknown

How to fix?

Upgrade nokogiri to version 1.10.3 or higher.

Overview

nokogiri is a gem for parsing HTML, XML, SAX, and Reader.

Affected versions of this package are vulnerable to Access Control Bypass due to the usage of a vulnerable dependency package (libxslt), which allows bypass of a protection mechanism because callers of xsltCheckRead and xsltCheckWrite permit access even upon receiving a -1 error code. xsltCheckRead can return -1 for a crafted URL that is not actually invalid and is subsequently loaded.