cve.bz

CVE-2026-79770 nokogiri nokogiri

8.7 highEPSS 0.5%Fix available

High (8.7) in nokogiri nokogiri. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in nokogiri 1.19.3.

On this page
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.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-08-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-79770 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-79770?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-79770?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-79770 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
sparklemotion nokogiribefore 1.19.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c4rq-3m3g-8wgxRubyGemsnokogiri<1.19.31.19.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13ruby-nokogirino fix listedDEBIAN-CVE-2026-79770
Debian14ruby-nokogiri1.19.3+dfsg-1DEBIAN-CVE-2026-79770
Ubuntu16.04:LTS, 18.04:LTS, 24.04:LTS and 4 moreruby-nokogirino fix listedUBUNTU-CVE-2026-79770
Alpaquita23, 25ruby-nokogirino fix listedBELL-CVE-2026-79770
Alpaquitastreamruby-nokogiri1.19.4-r0BELL-CVE-2026-79770

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in Nokogiri's CSS selector tokenizer. When processing untrusted user input passed to methods like Node#css, Node#at_css, or Searchable#search, an attacker can inject adversarial CSS selectors containing malicious string literals or identifiers. This triggers exponential regex backtracking within the parser, causing severe CPU exhaustion and leading to a Denial of Service (DoS) for the application thread.

Red Hat's mitigation

Do not pass untrusted user input directly into Nokogiri CSS search methods. If dynamic querying is necessary, sanitize input or restrict query parameter patterns before evaluation.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 23scale-amp2/backend-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel9Not affected
Red Hat 3scale API Management Platform 23scale-amp2/toolbox-rhel9Not affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Not affected
Red Hat Satellite 6tfm-rubygem-amazing_printNot affected
Red Hat Satellite 6tfm-rubygem-graphqlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-79770.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON