All reports
High

Nokogiri Inefficient Regular Expression Complexity

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
RubyGemsnokogiri
Affected versions
< 1.13.4
Fixed version
1.13.4

Exploitation

CVE-2022-24836

Probability of exploitation in the next 30 days: 3.52%

FIRST EPSS · 2026-11-18

Description

Summary

Nokogiri < v1.13.4 contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents.

Mitigation

Upgrade to Nokogiri >= 1.13.4.

Severity

The Nokogiri maintainers have evaluated this as High Severity 7.5 (CVSS3.1).

References

CWE-1333 Inefficient Regular Expression Complexity

Credit

This vulnerability was reported by HackerOne user ooooooo_q (ななおく).

Links

Credits

  • ooooooo-q