CVE-2026-78689
Received Received - Intake

Heap Out-of-Bounds Write in NGINX JavaScript (njs) XML Module

Vulnerability report for CVE-2026-78689, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-02

Last updated on: 2026-09-02

Assigner: F5 Networks

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-02
Last Modified
2026-09-02
Generated
2026-09-02
AI Q&A
2026-09-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 4 associated CPEs
Vendor Product Version / Range
nginx nginx *
nginx njs *
nginx qjs *
nginx nginx_saml *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in NGINX JavaScript (njs) XML module's namespace prefix list parser, accessible via the xml.exclusiveC14n() method. An attacker can exploit it by sending a crafted XML namespace prefix list to trigger an out-of-bounds write past a heap allocation. This may crash the NGINX worker or cause memory leaks, depending on the engine used (njs or QuickJS).

Detection Guidance

To detect this vulnerability, inspect NGINX configurations for usage of the xml.exclusiveC14n() method with externally controlled XML namespace prefix lists. Check for SAML processing in nginx-saml implementations that pass untrusted InclusiveNamespaces/@PrefixList to this method before signature verification.

Impact Analysis

This vulnerability can cause a denial of service by crashing NGINX workers repeatedly or consuming excessive memory. It may also lead to potential code execution, though this is not confirmed. The impact is limited to the data plane and does not affect the control plane.

Compliance Impact

This vulnerability primarily causes denial of service (DoS) through worker crashes or memory exhaustion, which could disrupt services handling sensitive data. For GDPR, this may impact availability of personal data processing systems. For HIPAA, it could affect the integrity and availability of protected health information systems. However, there is no evidence of data exposure or confidentiality loss.

Mitigation Strategies

Update NGINX JavaScript (njs) to the latest patched version. Disable the xml.exclusiveC14n() method in NGINX configurations. Review and update SAML processing to verify signatures before parsing namespace prefixes. Monitor NGINX worker processes for crashes or memory growth.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-78689. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart