Live threats

All CVEs / Nokogiri

CVE-2022-24836Nokogiri

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.8%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Apr 11, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-1333
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nokogiri.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems nokogiri < 1.13.4 1.13.4 gem "nokogiri", ">= 1.13.4"

Per OSV / GitHub Advisories (GHSA-crjr-9rc5-ghw8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nokogirinokogiri< 1.13.4
fedoraprojectfedora34
fedoraprojectfedora35
fedoraprojectfedora36
debiandebian_linux9.0
debiandebian_linux10.0
applemacos≥ 13.0 < 13.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.