cve.bz

CVE-2026-126064 sparklemotion nokogiri: Use After Free

2.0 lowEPSS 0.2%Fix available

Low (2.0) in sparklemotion nokogiri. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in nokogiri 1.19.5.

On this page
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.

Severity

CVSS 4.0

2.0 low
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
EPSS
0.2% estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-13. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
Assigned by
GitHub_M (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-126064 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-126064?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-126064?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-126064 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-126064

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-126064](https://cve.bz/cve/badge/CVE-2026-126064.svg)](https://cve.bz/cve/CVE-2026-126064)

HTML:

<a href="https://cve.bz/cve/CVE-2026-126064"><img src="https://cve.bz/cve/badge/CVE-2026-126064.svg" alt="CVE-2026-126064"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
sparklemotion nokogiri< 1.19.5

Fix and patched versions

  • nokogiri (RubyGems): fixed in 1.19.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3w22-6jfg-527wRubyGemsnokogiri<1.19.51.19.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ruby-nokogirino fix listedDEBIAN-CVE-2026-126064
Ubuntu16.04:LTS, 18.04:LTS, 24.04:LTS and 5 moreruby-nokogirino fix listedUBUNTU-CVE-2026-126064
Azure Linux3rubygem-nokogirino fix listedAZL-113338

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

References

Check your stackJSON