GHSA-c4rq-3m3g-8wgx
Nokogiri CSS selector tokenizer has regular expression backtracking
Summary
Remediation
Upgrade to the fixed version using your package manager.
gem install nokogiri -v 1.19.3
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| nokogiri | rubygems | 1.0.0, 1.0.1, 1.0.2, 1.0.3 (+189 more) | 1.19.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1333
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
Frequently Asked Questions
- What is GHSA-c4rq-3m3g-8wgx?
- Nokogiri CSS selector tokenizer has regular expression backtracking This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by GHSA-c4rq-3m3g-8wgx?
- GHSA-c4rq-3m3g-8wgx affects nokogiri. Use GeekWala's free vulnerability scanner to check your dependencies against GHSA-c4rq-3m3g-8wgx and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Related CVEs
- CVE-2019-11068CRITICAL
Nokogiri vulnerable to libxslt protection mechanism bypass
- CVE-2021-3517HIGH
Nokogiri contains libxml Out-of-bounds Write vulnerability
- GHSA-mrxw-mxhj-p664HIGH
Nokogiri updates packaged libxslt to v1.1.43 to resolve multiple CVEs
- CVE-2017-5029HIGH
Nokogiri implementation of libxslt lacks integer overflow checks
- CVE-2022-23476HIGH
Unchecked return value from xmlTextReaderExpand
- CVE-2017-15412HIGH
Nokogiri gem, via libxml, is affected by DoS vulnerabilities
- CVE-2026-57437LOW
Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime
- CVE-2026-57435LOW
Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies