Alpine: libnjs, multiple njs packages: security update to 1.0.2-r0

critical Tenable Self-Hosted Container Security Plugin ID 499254

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- Description NGINX JavaScript (njs) and QuickJS (qjs) engines have a vulnerability when a js_access handler
performs asynchronous request body processing and an exception is thrown during asynchronous access-
control evaluation before an explicit access denial is returned. An unauthenticated attacker can exploit
this vulnerability by sending a crafted HTTP request that triggers an error condition in the access
validation logic. This may cause the js_access phase to fail open, allowing the request to proceed instead
of being denied, resulting in an authentication or authorization bypass and unauthorized access to
protected resources. Impact This vulnerability may allow remote attackers to bypass js_access controls.
There is no control plane exposure; this is a data plane issue only. Note: Software versions which have
reached End of Technical Support (EoTS) are not evaluated. (CVE-2026-18329)

- Description NGINX JavaScript (njs) has a vulnerability where the njs XML module exposes entity-backed XML
attributes inconsistently with libxml2 canonicalization. In both the built-in njs and QuickJS backends
during the canonicalization process, the $attr$Name getter may return undefined for an explicitly present
attribute containing an internal entity reference. The $attrs getter may return a value derived only from
the first attribute child. This may allow an unauthenticated attacker that invests significant effort in
obtaining a genuinely signed document to skip validation while signature verification succeeds. An nginx-
saml deployment is a confirmed affected consumer when run with the built-in njs backend. Impact In
affected signed-XML consumers, an unauthenticated attacker can cause security-relevant attributes to
appear absent or truncated while signature verification succeeds. In nginx-saml, this can bypass expiry,
Destination, and request-correlation checks, enabling replay or acceptance of a response outside its
intended context. It does not permit signature or identity forgery, or a direct availability impact. There
is no control plane exposure; this is a data plane issue only. Note: Software versions which have reached
End of Technical Support (EoTS) are not evaluated. (CVE-2026-101019)

- Description NGINX JavaScript (njs) has a vulnerability where the built-in njs engine leaks a libxml2
parser context when xml.parse() fails. The failure path did not register cleanup and the context was not
released for the lifetime of the process. An unauthenticated attacker may send requests with malformed XML
and can cause unbounded memory growth in long-lived NGINX worker processes. Impact This vulnerability may
allow remote attackers to send requests that trigger repeated parsing of malformed XML and may lead to
NGINX worker termination or denial of service. There is no control plane exposure; this is a data plane
issue only. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
(CVE-2026-101025)

- A vulnerability exists in NGINX JavaScript where a malformed HTTP response received by ngx.fetch() can
crash an NGINX worker when trusted JavaScript reads Response.statusText. Exploitation requires control or
influence over the fetched HTTP response. Impact: This vulnerability may allow remote attackers to cause a
denial-of-service (DoS) on the NGINX system. There is no control plane exposure; this is a data plane
issue only. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
(CVE-2026-78222)

- Description NGINX JavaScript (njs) has a vulnerability in the XML module's namespace prefix list parser,
reachable through the xml.exclusiveC14n() method. An unauthenticated remote attacker can trigger it when
an affected NGINX configuration passes an externally controlled XML namespace prefix list to that method.
Both the njs and the QuickJS (qjs) engines are affected. A crafted prefix list causes an out-of-bounds
write past the end of a heap allocation. With the njs engine, which is the engine used when the js_engine
directive is absent, this corrupts adjacent objects and crashes the NGINX worker. With the QuickJS engine,
the same call additionally leaks the prefix list on every invocation, causing worker memory to grow across
requests. The official nginxinc/nginx-saml reference implementation is affected during SAML signature
verification. It reads InclusiveNamespaces/@PrefixList from an untrusted SAML message and passes it to
xml.exclusiveC14n() before the signature has been verified, so a valid SAML signature is not required. A
crafted SAML Response, Assertion, LogoutRequest, or LogoutResponse is sufficient. Code execution has not
been demonstrated and cannot be ruled out for all platforms, as the effect of the out-of-bounds write
depends on conditions beyond the attacker's control. Impact This vulnerability allows remote attackers to
cause a denial of service on the NGINX system, either through repeatable worker restarts or through worker
memory growth or possibly trigger code execution. There is no control plane exposure; this is a data plane
issue only. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
(CVE-2026-78689)

Solution

Update the libnjs library and its related packages to version 1.0.2-r0 or later.

See Also

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

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

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

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

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

Plugin Details

Severity: Critical

ID: 499254

Version: Revision 1.1

Type: Local

Published: 12/4/2026

Updated: 12/4/2026

Supported Sensors: Agentless Assessment

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.92

CVSS v2

Risk Factor: High

Base Score: 8.5

Temporal Score: 6.3

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

CVSS Score Source: CVE-2026-18329

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:H/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.2

Threat Score: 7.2

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS Score Source: CVE-2026-78689

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 9/2/2026

Reference Information

CVE: CVE-2026-101019, CVE-2026-101025, CVE-2026-18329, CVE-2026-78222, CVE-2026-78689

IAVA: 2026-A-1142-S