p PatchFirst

PatchFirst · Latest vulnerabilities

ruby-nokogiri vulnerabilities

Vulnerabilities published for ruby-nokogiri in the last 30 days: 0. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 5

  1. CVE-2022-23476

    High · CVSS 7.5EPSS 1.83%Fix available

    Unchecked return value from xmlTextReaderExpand in Nokogiri

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method `Nokogiri::XML::Reader#attribute_hash`. This can lead to a null pointer exception when invalid markup is being parsed. For applications using `XML::Reader` to parse untrusted inputs, this may potentially be a vector for a denial of service attack. Users are advised to upgrade to Nokogiri `>= 1.13.10`. Users may be able to search their code for calls to either `XML::Reader#attributes` or `XML::Reader#attribute_hash` to determine if they are affected.

    • Update to 1.13.10-r0
    Published Updated
  2. CVE-2022-29181

    High · CVSS 8.2EPSS 3.23%Fix available

    Improper Handling of Unexpected Data Type in Nokogiri

    Nokogiri is an open source XML and HTML library for Ruby. Nokogiri prior to version 1.13.6 does not type-check all inputs into the XML and HTML4 SAX parsers, allowing specially crafted untrusted inputs to cause illegal memory access errors (segfault) or reads from unrelated memory. Version 1.13.6 contains a patch for this issue. As a workaround, ensure the untrusted input is a `String` by calling `#to_s` or equivalent.

    • Update to 1.13.6-r0
    Published Updated
  3. CVE-2022-24836

    High · CVSS 7.5EPSS 3.52%Fix available

    Inefficient Regular Expression Complexity in Nokogiri

    Nokogiri is an open source XML and HTML library for Ruby. Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. Users are advised to upgrade to Nokogiri `>= 1.13.4`. There are no known workarounds for this issue.

    • Update to 1.13.4-r0
    Published Updated
  4. CVE-2020-26247

    Low · CVSS 2.6EPSS 1.21%Fix available

    XXE in Nokogiri

    Nokogiri is a Rubygem providing HTML, XML, SAX, and Reader parsers with XPath and CSS selector support. In Nokogiri before version 1.11.0.rc4 there is an XXE vulnerability. XML Schemas parsed by Nokogiri::XML::Schema are trusted by default, allowing external resources to be accessed over the network, potentially enabling XXE or SSRF attacks. This behavior is counter to the security policy followed by Nokogiri maintainers, which is to treat all input as untrusted by default whenever possible. This is fixed in Nokogiri version 1.11.0.rc4.

    • Update to 1.11.6-r0
    Published Updated
  5. CVE-2019-5477

    Critical · CVSS 9.8EPSS 6.14%Fix available

    CVE-2019-5477

    A command injection vulnerability in Nokogiri v1.10.3 and earlier allows commands to be executed in a subprocess via Ruby's `Kernel.open` method. Processes are vulnerable only if the undocumented method `Nokogiri::CSS::Tokenizer#load_file` is being called with unsafe user input as the filename. This vulnerability appears in code generated by the Rexical gem versions v1.0.6 and earlier. Rexical is used by Nokogiri to generate lexical scanner code for parsing CSS queries. The underlying vulnerability was addressed in Rexical v1.0.7 and Nokogiri upgraded to this version of Rexical in Nokogiri v1.10.4.

    • Update to 1.10.4-r0
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →