Skip to main content
VulnerabilityPublished

CVE-2026-126064: Use-After-Free in Nokogiri when replacing an attribute value

Affects nokogiriSource GCVE Database

0
Compare
Authoritative record:CVE-2026-126064· Low 2.0

Not known to be exploited · CVSS 2.0 Low : upgrade to 1.19.5 when convenient.

Data as of 10 Nov 2026, 21:07 UTC

CVSS 4.0 base score
2.0Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.02.0
Patch
Available – fixed in 1.19.5
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.

What to do

Upgrade nokogiri to 1.19.5.

Affected software

ProductAffectedFixed in
RubyGemsnokogiriAffected
  • <1.19.5
Fixed in
  • 1.19.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to Nokogiri version 1.19.5 or later, where this issue is fixed. As a temporary workaround, avoid accessing attribute child nodes directly via Attr#children or similar methods before replacing the same attribute's value using Node#[]= or Node#lang=.

Description

Nokogiri versions prior to 1.19.5 contain a use-after-free vulnerability in the CRuby native extension when replacing the value of an existing XML attribute via Nokogiri::XML::Node#[]= or Nokogiri::XML::Node#lang=. This occurs if the attribute's child nodes were accessed before replacement, potentially causing invalid memory reads or segfaults. The issue is fixed in Nokogiri 1.19.5. JRuby is not affected. The maintainers rate this vulnerability as low severity due to the unusual usage pattern required to trigger it.

References

Community reviews

Loading reviews…