Nokogiri Inefficient Regular Expression Complexity
High severity
GitHub Reviewed
Published
Apr 11, 2022
in
sparklemotion/nokogiri
•
Updated Jul 6, 2023
Description
Published to the GitHub Advisory Database
Apr 11, 2022
Reviewed
Apr 11, 2022
Published by the National Vulnerability Database
Apr 11, 2022
Last updated
Jul 6, 2023
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 (ななおく).
References