Ruby nokogiri: Prior to 1.19.4, Nokogiri::XML::Document#root= validated only that the new root was a
Affects ruby-nokogiriSource GCVE Database
Not known to be exploited · CVSS 1.7 Low · fixed in 1.19.4 : update ruby-nokogiri when convenient.
Data as of 24 Nov 2026, 21:16 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 34% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.19.4
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:UExploitation evidence
Disclosed: evidence found.
CVE published 25 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10ruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10ruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::Document#root= validated only that the new root was a Nokogiri::XML::Node, allowing a DTD node to be set as the document root. The result is a heap use-after-free during garbage collection or finalization, leading to an invalid memory read or potentially a segfault. This vulnerability is fixed in 1.19.4.