Skip to main content

NGINX JavaScript CVE-2026-8711

| EUVDEUVD-2026-30940 CRITICAL
Heap-based Buffer Overflow (CWE-122)
2026-05-19 f5 GHSA-pj32-6rxc-gcmq
9.2
CVSS 4.0 · Vendor: f5
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify NGINX exposing njs with js_fetch_proxy
  2. Delivery
    Craft HTTP request with malicious header/arg/cookie
  3. Exploit
    Send request to ngx.fetch() location
  4. Execution
    Trigger heap overflow in worker via proxy URL construction
  5. Persist
    Crash worker (ASLR on) or hijack control flow (ASLR off)
  6. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 May 19, 2026 - 15:01 CVSS 8.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

NGINX JavaScript 0.9.4 <0.9.9

Affected Packages

euvd nginx_javascript fix: 0.9.9

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

Vendor (f5) PRIMARY 9.2 CRITICAL
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
SUSE 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 8.1 HIGH

Primary rating from Vendor (f5).

CVSS VectorVendor: f5

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Analysis Updated
May 19, 2026 - 15:28 vuln.today
v2 - CVSS changed
Severity Changed
May 19, 2026 - 15:22 NVD
HIGH CRITICAL
CVSS changed
May 19, 2026 - 15:22 NVD
8.1 (HIGH) 9.2 (CRITICAL)
Patch available
May 19, 2026 - 15:02 EUVD

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 60% exploitable
Data Quality
8 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy