What’s Vulnerable › Vulnerabilities

CVE-2022-24836: Inefficient Regular Expression Complexity in Nokogiri

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Apple macOS 13.1; sparklemotion nokogiri 1.13.4; Rubygems Nokogiri 1.13.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-24836 or the next vulnerability affects your stack