CVE-2026-57437
Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime
Summary
Remediation
Upgrade to the fixed version using your package manager.
gem install nokogiri -v 1.19.4
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 (+190 more) | 1.19.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-416Use After FreeMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 4.8 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
References
Frequently Asked Questions
- What is CVE-2026-57437?
- Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime This vulnerability has been assigned a severity rating of LOW (CVSS score: 4.8/10).
- How do I check if my project is affected by CVE-2026-57437?
- CVE-2026-57437 affects nokogiri. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-57437 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2012-6685HIGH
Nokogiri is vulnerable to XML External Entity (XXE) attack
- CVE-2020-7595HIGH
libxml as used in Nokogiri has an infinite loop in a certain end-of-file situation
- CVE-2015-8806HIGH
Denial of service or RCE from libxml2 and libxslt
- GHSA-c4rq-3m3g-8wgxHIGH
Nokogiri CSS selector tokenizer has regular expression backtracking
- CVE-2019-13118HIGH
libxslt Type Confusion vulnerability that affects Nokogiri
- GHSA-cgx6-hpwq-fhv5HIGH
Integer Overflow or Wraparound in libxml2 affects Nokogiri
- CVE-2017-18258MEDIUM
Uncontrolled resource consumption in nokogiri
- CVE-2026-57434LOW
Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies