CVE-2026-57436

EUVD-2026-39427
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.3 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Base Score
CVSS 3.x
EPSS Score
Percentile: 24.56%
Affected Products (NVD)
VendorProductVersion
nokogirinokogiri
𝑥
< 1.19.4
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
ruby-nokogiri
bookworm
postponed
bullseye
postponed
bullseye (security)
vulnerable
forky
1.19.4+dfsg-1
fixed
sid
1.19.4+dfsg-1
fixed
trixie
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ruby-nokogiri
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
noble
needs-triage
questing
ignored
resolute
needs-triage
trusty
needs-triage
Azure Linux logo
Azure Linux Releases
Azure Package
Release
rubygem-nokogiri
Azure Linux 3.0
0:1.19.4-1.azl3
fixed