Description
There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:
- Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4,
calling Document#encoding= with an invalid encoding (e.g., a non-string, or a string containing a null
byte) raises an exception, but only after freeing the document's current encoding string without replacing
it. The document is left referencing freed memory, so the next call to Document#encoding reads invalid
memory, which can cause a segfault or leak freed bytes into a Ruby String. Affects the CRuby (libxml2)
implementation only; JRuby is not affected. This vulnerability is fixed in 1.19.4. (CVE-2026-57236)
- Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, the
NONET parse option, which Nokogiri turns on by default for Nokogiri::XML::Schema (see CVE-2020-26247), was
not correctly enforced on the JRuby implementation. As a result, a schema parsed with default options
could still cause external resources to be fetched over the network, potentially enabling SSRF or XXE
attacks. This vulnerability is fixed in 1.19.4. (CVE-2026-57234)
- Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4,
Nokogiri::XML::NodeSet#[] (and its alias #slice) checked the requested index against the node set's bounds
using a 32-bit-truncated copy of the index. A large negative index could pass the check and then be used
at full width, reading outside the node set's storage. On CRuby this is an out-of-bounds read that
typically crashes the process; on JRuby it is not memory-unsafe but returns an incorrect node. This
vulnerability is fixed in 1.19.4. (CVE-2026-57235)
- Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4,
Nokogiri contains a bug when calling certain methods on allocated-but-uninitialized native wrapper classes
that inherit from Nokogiri::XML::Node. This caused a NULL pointer dereference that could crash the
process. This vulnerability is fixed in 1.19.4. (CVE-2026-57434)
Solution
Update the ruby-nokogiri library and its related packages to version 1.19.4-r0 or later.
Plugin Details
Supported Sensors: Agentless Assessment
Risk Information
Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:C
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C
Threat Vector: CVSS:4.0/E:U
Vector: 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
Vulnerability Information
Exploit Ease: No known exploits are available
Vulnerability Publication Date: 6/25/2026