Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify NGINX exposing njs with js_fetch_proxy
-
DeliveryCraft HTTP request with malicious header/arg/cookie
-
ExploitSend request to ngx.fetch() location
-
ExecutionTrigger heap overflow in worker via proxy URL construction
-
PersistCrash worker (ASLR on) or hijack control flow (ASLR off)
-
ImpactExecute code in NGINX worker context
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Target deployment must run F5 NGINX JavaScript (njs) versions 0.9.4 through 0.9.8 with a js_fetch_proxy directive whose value interpolates at least one client-controlled variable - specifically $http_<header>, $arg_<query_param>, or $cookie_<name> - AND the same configuration must include a location block that invokes the ngx.fetch() operation, which is what triggers the proxy URL construction containing attacker bytes. No authentication or user interaction is required (PR:N/UI:N), and the attack is reachable over the network. Limiting factors: the CVSS attack complexity is High (AC:H) with attack requirements (AT:P), reflecting that these configuration preconditions are not default and the heap layout for code execution further requires ASLR to be disabled on the host - on standard Linux systems with ASLR enabled, the realistic outcome is a worker process crash rather than RCE. |
| Impact | The CVSS 4.0 score of 9.2 with vector AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H reflects a network-reachable, unauthenticated vulnerability with full CIA impact but elevated attack complexity (AC:H) and an attack requirement (AT:P) indicating non-default preconditions must be present. The realistic risk is bifurcated: where ASLR is enabled (the modern Linux default), the practical impact is a worker process crash and denial of service via restart; on hosts with ASLR disabled, the same primitive escalates to remote code execution in the worker context. Exploitability is meaningfully gated by configuration - only deployments using js_fetch_proxy with a client-controlled variable and an ngx.fetch()-invoking location are vulnerable - so this is not a blanket NGINX flaw. No EPSS score, KEV listing, SSVC decision, or POC indicator was provided in the input, so there is no public exploit identified at time of analysis; the conditional preconditions suggest targeted rather than opportunistic mass exploitation if weaponized. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a crafted HTTP request to a vulnerable NGINX instance, embedding malicious content in a header, query argument, or cookie that the configuration interpolates into a js_fetch_proxy value used by an ngx.fetch() call. The malformed proxy URL triggers a heap buffer overflow inside the NGINX worker, crashing it and forcing a restart; on hosts where ASLR has been disabled, the overflow can be shaped into reliable code execution in the worker process context. No public exploit identified at time of analysis, but the deterministic precondition set and detailed advisory make a proof-of-concept plausible for skilled researchers. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 19, 2026
Heap buffer overflow in F5 NGINX JavaScript (njs) module versions 0.9.4 through 0.9.8 allows unauthenticated remote attackers to crash NGINX worker processes, with potential remote code execution on hosts where ASLR is disabled. Exploitation requires the deployment to use the js_fetch_proxy directive with at least one client-controlled NGINX variable (such as $http_*, $arg_*, or $cookie_*) and a location that invokes ngx.fetch(). No public exploit identified at time of analysis, but a vendor patch is available and the CVSS 4.0 base score of 9.2 reflects the high impact across confidentiality, integrity, and availability.
Earlier versions of this analysis (1)
Heap buffer overflow in NGINX JavaScript (njs) module allows unauthenticated remote attackers to crash NGINX worker processes - and potentially achieve code execution on hosts where ASLR is disabled - when js_fetch_proxy is configured with client-controlled variables alongside an ngx.fetch() operation. F5 has issued an advisory (K000161307) and the issue carries a CVSS 8.1 (AC:H), with no public exploit identified at time of analysis and EPSS data not provided. Exploitation requires a specific, non-default njs configuration pattern, which limits the affected population despite the network-reachable, no-auth vector.
RemediationAI
Upgrade the NGINX JavaScript module to version 0.9.9 or later, which is the first release outside the affected 0.9.4-0.9.8 range per F5 advisory K000161307 (https://my.f5.com/manage/s/article/K000161307). If immediate patching is not possible, the most direct compensating control is to remove client-controlled NGINX variables ($http_*, $arg_*, $cookie_*) from any js_fetch_proxy directive value and instead use static or server-controlled values, which eliminates the attack surface but reduces flexibility for dynamic upstream selection. Alternatively, temporarily disable the affected location blocks that call ngx.fetch() under a js_fetch_proxy with dynamic variables - this breaks the affected proxy functionality but stops the attack path. Ensure ASLR remains enabled on the host (the Linux default), which downgrades a successful exploit from code execution to a worker restart while a patch is being rolled out.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NGINX JavaScript (njs) is F5's scripting engine that embeds JavaScript into the NGINX configuration, allowing administrators to write request-handling logic and outbound subrequests via the ngx.fetch() API. The js_fetch_proxy directive configures an upstream proxy URL used for those subrequests; when its value interpolates a client-controlled NGINX variable, the parser appears to mishandle attacker-supplied content during proxy URL construction. The root cause is classified as CWE-122 (heap-based buffer overflow), meaning attacker bytes overrun an allocation on the heap inside the NGINX worker process. The affected CPE is cpe:2.3:a:f5:nginx_javascript across the version range 0.9.4 up to (but not including) 0.9.9.
Know when Nginx Javascript gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (f5).
CVSS VectorVendor: f5
Lifecycle Timeline
4DescriptionCVE.org
NGINX JavaScript has a vulnerability when the js_fetch_proxy directive is configured with at least one client-controlled NGINX variable (for example, $http_*, $arg_*, $cookie_*) and a location invoking the ngx.fetch() operation from NGINX JavaScript. An unauthenticated attacker can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, for systems with Address Space Layout Randomization (ASLR) disabled, code execution is possible.
Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
Executive ViewAI
F5 NGINX JavaScript module versions 0.9.4 through 0.9.8 contain a critical vulnerability allowing unauthenticated remote attackers to crash web services and potentially execute code on affected servers. Organizations running these specific versions with js_fetch_proxy configuration face immediate risk of service disruption and potential data compromise. A vendor patch is available and must be deployed urgently.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Nginx Javascript
View allHeap out-of-bounds write in NGINX JavaScript (njs) xml.exclusiveC14n() allows unauthenticated remote attackers to crash
NGINX JavaScript (njs) and QuickJS (qjs) fail open during the js_access phase when an exception is thrown inside an asyn
NULL pointer dereference in NGINX JavaScript (njs) crashes NGINX worker processes when an njs script calls ngx.fetch() a
Canonicalization inconsistency in the NGINX JavaScript (njs) XML module lets an unauthenticated attacker who already hol
Malformed XML parsed through NGINX JavaScript (njs) xml.parse() leaks libxml2 parser contexts, allowing unauthenticated
EUVD-2026-30940
GHSA-pj32-6rxc-gcmq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB