Alpine: ruby-nokogiri: security update to 1.19.4-r0

medium Tenable Cloud Security Plugin ID 478655

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.

See Also

https://security.alpinelinux.org/vuln/CVE-2026-57234

https://security.alpinelinux.org/vuln/CVE-2026-57235

https://security.alpinelinux.org/vuln/CVE-2026-57236

https://security.alpinelinux.org/vuln/CVE-2026-57434

https://security.alpinelinux.org/vuln/CVE-2026-57435

https://security.alpinelinux.org/vuln/CVE-2026-57436

https://security.alpinelinux.org/vuln/CVE-2026-57437

https://security.alpinelinux.org/vuln/CVE-2026-57438

Plugin Details

Severity: Medium

ID: 478655

Version: Revision 1.1

Type: Local

Published: 11/8/2026

Updated: 11/8/2026

Supported Sensors: Agentless Assessment

Risk Information

VPR

Risk Factor: Low

Score: 3.9

Percentile: 52.77

CVSS v2

Risk Factor: High

Base Score: 8.5

Temporal Score: 6.3

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:C

CVSS Score Source: CVE-2026-57236

CVSS v3

Risk Factor: High

Base Score: 8.2

Temporal Score: 7.1

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

CVSS v4

Risk Factor: Medium

Base Score: 6.3

Threat Score: 1.7

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

CVSS Score Source: CVE-2026-57437

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 6/25/2026

Reference Information

CVE: CVE-2026-57234, CVE-2026-57235, CVE-2026-57236, CVE-2026-57434, CVE-2026-57435, CVE-2026-57436, CVE-2026-57437, CVE-2026-57438