CVE-2026-126064

GHSA-3w22-6jfg-527w · published 10 Nov 2026 · updated 12 Nov 2026

Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Node#[]=` or `#lang=`

2.0LowCVSS 2.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in nokogiri 1.19.5.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
sparklemotion<1.19.5
rubygems: nokogiri<1.19.51.19.5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in nokogiri (RubyGems), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126064 severity on Zeptric[![CVE-2026-126064](https://zeptric.io/badge/cve/CVE-2026-126064.svg)](https://zeptric.io/cve/CVE-2026-126064)