CVE-2026-78689: NGINX ngx_http_js_module vulnerablility

Published Sep 2, 2026
·
Updated

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 jsengine 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.

Affected Software

2 affected components
Nginx NGINX JavaScript (njs)
NGINX JavaScript (njs) / QuickJS (qjs)

Event History

Sep 2, 2026
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are realistically exposed?

Deployments are exposed when an affected NGINX configuration passes an externally controlled XML namespace prefix list to xml.exclusiveC14n(). The official nginxinc/nginx-saml reference implementation is affected during SAML signature verification because it processes InclusiveNamespaces/@PrefixList from untrusted SAML messages.

2

Does an attacker need a valid SAML signature to trigger the issue in the affected SAML reference implementation?

No. The prefix list is passed to xml.exclusiveC14n() before signature verification, so a valid signature is not required. A crafted SAML Response, Assertion, LogoutRequest, or LogoutResponse is sufficient.

3

How does the selected JavaScript engine affect the observed impact?

When js_engine is absent, NGINX uses the njs engine; exploitation corrupts adjacent objects and crashes the NGINX worker. With the QuickJS engine, each affected call also leaks the prefix list, causing worker memory usage to grow across requests.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203