Related Vulnerabilities: CVE-2022-24836  

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.

Description

The MITRE CVE dictionary describes this issue as:

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.

Additional Information

  • Bugzilla 2074346: CVE-2022-24836 nokogiri: ReDoS in HTML encoding detection
  • (CWE-1333|CWE-400): Inefficient Regular Expression Complexity or Uncontrolled Resource Consumption
  • FAQ: Frequently asked questions about CVE-2022-24836