Low severity2.0NVD Advisory· Published Nov 10, 2026
CVE-2026-126064
CVE-2026-126064
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-3w22-6jfg-527wghsaADVISORY
- github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/GHSA-3w22-6jfg-527w.ymlghsa
- github.com/sparklemotion/nokogiri/commit/b15b518db9fd15fd6b046f73d1439c282e5cc425nvd
- github.com/sparklemotion/nokogiri/commit/feaed3c8c9bd9d81d064d4ca09b16044cd705d6fnvd
- github.com/sparklemotion/nokogiri/pull/3752nvd
- github.com/sparklemotion/nokogiri/releases/tag/v1.19.5nvd
- github.com/sparklemotion/nokogiri/security/advisories/GHSA-3w22-6jfg-527wnvd
News mentions
0No linked articles in our index yet.