Description
Nokogiri versions before 1.19.3 contain regular expression denial of service vulnerabilities in the CSS selector tokenizer affecting string-literal and identifier tokenization. Attackers can inject adversarial CSS selectors into methods like Node#css, Node#at_css, and Searchable#search to cause exponential regex backtracking and denial of service.
Metrics
CVSS 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| sparklemotion | nokogiri | < 1.19.3 |
References
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-c4rq-3m3g-8wgxMitigation, Vendor Advisory
- https://www.vulncheck.com/advisories/nokogiri-before-redos-via-css-selector-tokenizerThird Party Advisory
Timeline
- Published
- Aug 25, 2026
- Last modified
- Sep 1, 2026
- NVD status
- Analyzed