Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. nokogiri
  4. ›
  5. CVE-2022-24836

CVE-2022-24836: Inefficient Regular Expression Complexity

April 11, 2022 (updated November 7, 2023)

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.

References

  • github.com/advisories/GHSA-crjr-9rc5-ghw8
  • github.com/sparklemotion/nokogiri/commit/e444525ef1634b675cd1cf52d39f4320ef0aecfd
  • github.com/sparklemotion/nokogiri/releases/tag/v1.13.4
  • github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8
  • groups.google.com/g/ruby-security-ann/c/vX7qSjsvWis/m/TJWN4oOKBwAJ?utm_medium=email&utm_source=footer
  • nvd.nist.gov/vuln/detail/CVE-2022-24836

Code Behaviors & Features

Detect and mitigate CVE-2022-24836 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.13.4

Fixed versions

  • 1.13.4

Solution

Upgrade to version 1.13.4 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

gem/nokogiri/CVE-2022-24836.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.