CVE-2026-126064
nokogiri: nokogiri: Denial of Service via use-after-free when replacing attribute values
Overview
Description
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.5, the CRuby native extension can leave Ruby wrappers pointing to freed memory when Nokogiri::XML::Node#[]= or Nokogiri::XML::Node#lang= replaces an existing attribute value after code has accessed the attribute's child nodes. Replacing the value frees native child nodes while their wrappers remain reachable, and later use of those wrappers can cause an invalid read or process segfault. JRuby is not affected. This issue is fixed in version 1.19.5.
Source: OX vulnerability database
Severity
2.5 · LOW
CVSS 3.1 base score, scored by redhat.
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
Weakness: CWE-416
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | nokogiri | <1.19.5 | 1.19.5 |
Open a package to see all its vulnerabilities.
Operating systems · 17 fixes
chainguard 1 release · 10 packages
| Release | Package | Fixed in |
|---|---|---|
| logstash-8-19 | not affected | |
| pact-broker-docker | 2.142.0.2.120.0-r4 | |
| pact-broker-docker-fips | 2.142.0.2.120.0-r5 | |
| pghero +1 | 3.8.0-r13 | |
| kube-logging-operator | 6.9.0-r13 | |
| ruby3-4-rails-7-2 | 7.2.4-r2 |
4 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | ruby-nokogiri | affected |
| 12 | ruby-nokogiri | affected |
| 13 | ruby-nokogiri | affected |
| 14 | ruby-nokogiri | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby-nokogiri | affected |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| kube-logging-operator | 6.9.0-r13 | |
| logstash-9-4 | 9.4.9-r1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-126064
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/GHSA-3w22-6jfg-527w.yml
- github.com https://github.com/sparklemotion/nokogiri
- github.com https://github.com/sparklemotion/nokogiri/commit/b15b518db9fd15fd6b046f73d1439c282e5cc425
- github.com https://github.com/sparklemotion/nokogiri/commit/feaed3c8c9bd9d81d064d4ca09b16044cd705d6f
- github.com https://github.com/sparklemotion/nokogiri/pull/3752
- github.com https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5
- github.com https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-3w22-6jfg-527w
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-126064
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-126064
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.