Vulnerability
CVE-2026-126064
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.
88 advisories report this vulnerability, across 8 ecosystems.
Advisories
- ALPINE-EDGE-CVE-2026-126064
-
AZL-113338
CVE-2026-126064 affecting package rubygem-nokogiri 1.19.4-1
- CGA-24pc-mc8x-6w48
- CGA-26v3-cw2f-rpwg
- CGA-2c4q-w4wx-g432
- CGA-2hm6-598m-vxp5
- CGA-2j84-x9c5-2h5c
- CGA-2w9h-6g8p-6472
- CGA-3gpc-rvv3-h653
- CGA-3mrq-84g2-6xmj
- CGA-46c4-66wc-r52r
- CGA-46v8-6wrw-2fqg
- CGA-4953-g2q5-3w6q
- CGA-4mh8-vwgq-h5fx
- CGA-578c-pcxj-wgmq
- CGA-5889-48xq-jcxh
- CGA-5948-4pw8-vwj5
- CGA-5mgv-xfvw-25v3
- CGA-5pvg-238p-mq33
- CGA-5q9j-jmjf-2xrp
- CGA-62ch-v49f-jf9p
- CGA-6c96-j72r-9j6v
- CGA-6wpw-g924-x2pm
- CGA-73gp-5hg6-95px
- CGA-7g85-8374-c37f
- CGA-7j5g-538m-4xcp
- CGA-7rp5-w2fp-455r
- CGA-7ww6-5344-jr8g
- CGA-83j8-4qg8-226q
- CGA-85vf-j7g8-5g3f
- CGA-8f57-pg76-vqmr
- CGA-8hv4-9hp5-q8wq
- CGA-99cc-fx5r-cj2c
- CGA-9cp7-973f-8w4j
- CGA-c33r-8xfr-q2w8
- CGA-ch83-r6vj-3r6w
- CGA-cpfp-54mm-rjjg
- CGA-cq2r-59g9-jpp4
- CGA-cxmv-vcfq-32hw
- CGA-f2gv-83xx-crq5
- CGA-f2vp-8g9r-wcvx
- CGA-f99w-phf4-22r3
- CGA-fjv9-v8h3-fvm8
- CGA-frw6-4p86-jpgf
- CGA-g32c-5pww-5qj6
- CGA-g729-fvwr-3w9p
- CGA-g8cx-2cwq-v9v9
- CGA-gfp7-r6j9-mggp
- CGA-h4rp-3gvc-9p4j
- CGA-hcxw-whfw-w4j6
- CGA-hgpj-37hv-q2rh
- CGA-hvwm-gqc2-cxcf
- CGA-hwfv-2cj9-vqm4
- CGA-j7cr-6q32-7h97
- CGA-jfwc-vv9j-8w3q
- CGA-m7wq-7292-jrc8
- CGA-m89h-7mcw-622q
- CGA-mhx4-59h8-42ww
- CGA-mm6v-2h3w-jc4c
- CGA-mmr7-mx47-5hw2
- CGA-mp7x-g76p-pjmw
- CGA-p9vm-59m5-24hq
- CGA-p9x6-x44m-6637
- CGA-pgpj-5qcc-jqcw
- CGA-pj2g-g3f7-pc87
- CGA-pp7g-4rgm-mgpf
- CGA-q36g-cmqw-j2fq
- CGA-qh37-5qj2-c274
- CGA-qjf4-5cf5-m8mh
- CGA-qjh3-745f-fvjc
- CGA-qm7w-5qmq-44x2
- CGA-qp2g-vh6v-2mqq
- CGA-qpcg-7gpr-wj5m
- CGA-qv56-65p3-99qq
- CGA-r47x-g3g2-gm44
- CGA-vp9x-g685-2mjp
- CGA-w9v3-fr34-xp54
- CGA-wghw-28r6-r43f
- CGA-x4q8-gcph-j5xh
- CGA-x6cq-jpc4-7hvc
- CGA-xqm5-x869-hggw
- CGA-xw3c-86m4-9pr8
- CGA-xw5m-h4h7-mjh7
- CGA-xwgc-927h-q525
-
DEBIAN-CVE-2026-126064
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…
-
GHSA-3w22-6jfg-527w
Nokogiri: Use-After-Free in Nokogiri when replacing an attribute value
-
SUSEVEX-CVE-2026-126064
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…
-
UBUNTU-CVE-2026-126064
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…
References
- https://github.com/sparklemotion/nokogiri/commit/b15b518db9fd15fd6b046f73d1439c282e5cc425
- https://github.com/sparklemotion/nokogiri/commit/feaed3c8c9bd9d81d064d4ca09b16044cd705d6f
- https://github.com/sparklemotion/nokogiri/pull/3752
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-3w22-6jfg-527w