A critical heap buffer overflow vulnerability tracked as CVE-2026-8711 has been disclosed in NGINX JavaScript (njs), allowing unauthenticated remote attackers to crash worker processes and, under certain conditions, achieve full remote code execution (RCE).
The flaw arrived amid a broader wave of NGINX security disclosures in May 2026, underscoring escalating risks for organizations relying on the world’s most widely deployed web server.
The vulnerability exists in the ngx_http_js_module module and is triggered when the js_fetch_proxy directive is configured with at least one client-controlled NGINX variable, such as $http_*, $arg_*, or $cookie_* alongside a location block invoking the ngx.fetch() operation.
An unauthenticated attacker can send specially crafted HTTP requests to manipulate these variables, causing a CWE-122 heap-based buffer overflow in the NGINX worker process.
On systems where Address Space Layout Randomization (ASLR) is disabled, the overflow can be escalated to full RCE.
A configuration that passes client-controlled HTTP headers directly into the proxy URL, such as $http_x_user and $http_x_password, is a textbook vulnerable pattern. F5 has clarified that data planes are strictly a data-plane issue with no control-plane exposure.
Affected Versions
CVE-2026-8711 carries a Critical CVSS v4.0 score of 9.2 and a High CVSS v3.1 score of 8.1. Only NGINX JavaScript (njs) versions 0.9.4 through 0.9.8 are affected; all other F5 products, including NGINX Plus, BIG-IP, BIG-IQ, F5 Distributed Cloud, and F5OS, have been assessed and confirmed not vulnerable.
| Product | Vulnerable Versions | Fixed Version |
|---|---|---|
| NGINX JavaScript (njs) | 0.9.4 – 0.9.8 | 0.9.9 |
CVE-2026-8711 is not an isolated incident. On May 13, 2026, researchers at DepthFirst AI disclosed “NGINX Rift” a four-CVE vulnerability chain, the most severe of which (CVE-2026-42945) has reportedly existed in the NGINX codebase since 2008.
Together, these flaws allow unauthenticated attackers to crash worker processes, leak memory, or achieve full RCE by exploiting deterministic heap layouts.
VulnCheck has confirmed that CVE-2026-42945 has already been exploited in the wild, and DepthFirst has publicly released proof-of-concept exploit code.
Mitigation
With active exploitation already confirmed for CVE-2026-42945 and proof-of-concept code circulating, patching is urgent. Security teams should:
- Audit
js_fetch_proxydirectives and eliminate all client-controlled variable references - Enable ASLR across all systems running NGINX to block RCE escalation
- Monitor NGINX worker logs for unexpected restarts, a key indicator of active exploitation attempts
- Restrict internet-facing NGINX instances to the minimum required modules and configurations
Organizations that cannot immediately patch should replace unnamed captures with named captures in all affected rewrite directives as a temporary workaround.
Given NGINX’s widespread deployment as a high-performance web server and reverse proxy, estimated to power over 30% of active websites globally, CVE-2026-8711 represents a significant risk surface for organizations using the njs scripting module.
Security teams should prioritize patching, particularly in internet-facing environments where ASLR may not be enforced by default.
Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.