CVE-2026-79770: Nokogiri before 1.19.3 ReDoS via CSS selector tokenizer

Published Aug 25, 2026
·
Updated

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#atcss, and Searchable#search to cause exponential regex backtracking and denial of service.

Affected Software

1 affected component
rubygems/nokogiri<1.19.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nokogiri to a version that resolves this vulnerability.

    Fixed in 1.19.3
  2. Compensating control

    Avoid processing attacker-controlled CSS selector strings with Nokogiri methods such as Node#css, Node#at_css, and Searchable#search until Nokogiri is updated to 1.19.3.

Event History

Aug 25, 2026
CVE Published
via MITRE·03:16 PM
Data Sourced
via MITRE·03:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications using Nokogiri before 1.19.3 are exposed when they pass attacker-controlled CSS selector strings to Node#css, Node#at_css, or Searchable#search. The impact is denial of service through excessive regular-expression backtracking.

2

Does exploitation require authentication or user interaction?

No. The supplied severity vector indicates network access, low attack complexity, no privileges required, and no user interaction.

3

What version resolves the vulnerability?

Upgrade Nokogiri to version 1.19.3 or later. The affected versions are those before 1.19.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203