Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-18329

HIGH 8.8EPSS 46%

NGINX ngx_http_js_module vulnerability

Mitigation

  • Vendor workaround: * To secure your NGINX njs js_access handler against unhandled exceptions such as JSON.parse failures, wrap your logic in a robust try/catch block with a default strict deny policy that returns an HTML 403 Forbidden response code. For example:async function auth(r) {
  •   try {
  •     // 1. Guard input: Safely check for the Authorization header
  •     var authHeader = r.headersIn ? r.headersIn.Authorization : undefined;
  •     if (!authHeader) {
  •       r.warn("Access Denied: Missing Authorization header.");
  •       return r.return(401);
  •     }
  •     // 2. Perform the async HTTP request
  •     let reply = await ngx.fetch(' http://authsvc/check ', {
  •       headers: { Authorization: authHeader }
  •     });
  •     // 3. Validate response status
  •     if (reply.status !== 200) {
  •       r.warn(`Access Denied: Auth service returned status ${reply.status}`);
  •       return r.return(401);
  •     }
  •     // 4. Read response body
  •     // Note: ngx.fetch body is read asynchronously using .text() or .json()
  •     let responseText = await reply.text();
  •     let payload = {};
  •     // 5. Guard JSON.parse explicitly
  •     try {
  •       payload = JSON.parse(responseText);
  •     } catch (jsonError) {
  •       r.error(`Security Warning: Failed to parse auth service JSON payload: ${jsonError.message}`);
  •       // Explicitly deny the request due to malformed auth response payload
  •       return r.return(403);
  •     }
  •     // 6. Validate the contents of the parsed JSON
  •     if (payload.authorized !== true) {
  •       r.warn("Access Denied: Client token validated but not authorized.");
  •       return r.return(403);
  •     }
  •     // 7. Success: Explicitly allow the request to proceed
  •     return r.return(200);
  •   } catch (globalError) {
  •     // 8. Global Catch-All: Block the bypass vulnerability on any script exception
  •     r.error(`Security Critical: Unhandled exception in auth handler: ${globalError.toString()}`);
  •     // Always return 403 (Deny) on exception to guarantee a fail-closed state.
  •     return r.return(403);
  •   }
  • }
  • export default { auth };
  • * Place a security enforcement layer such as F5 WAF for NGINX or BIG-IP Advanced WAF before NGINX njs to prevent malformed requests. Configure the WAF to do the following: * Validate JSON syntax Enforce request body limits Block malformed payloads
  • * Reject unexpected content types Apply API schema validation

Who should check

  • Anyone running F5 NGINX JavaScript >= 1.0.0, < 1.0.1; >= 0.9.9, < *

Vulnerability facts

Affected
F5 NGINX JavaScript >= 1.0.0, < 1.0.1; >= 0.9.9, < *
Fixed in
F5 NGINX JavaScript 1.0.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.8 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: Low
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.65% chance of exploitation in 30 days (percentile 46, 2026-11-26)
CWE
CWE-636
Published
Modified

Description

Description NGINX JavaScript (njs) and QuickJS (qjs) engines have a vulnerability when a js_access handler performs asynchronous request body processing and an exception is thrown during asynchronous access-control evaluation before an explicit access denial is returned. An unauthenticated attacker can exploit this vulnerability by sending a crafted HTTP request that triggers an error condition in the access validation logic. This may cause the js_access phase to fail open, allowing the request to proceed instead of being denied, resulting in an authentication or authorization bypass and unauthorized access to protected resources. Impact This vulnerability may allow remote attackers to bypass js_access controls. 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 and fixed versions

Package / productAffectedFixedSource
F5 NGINX JavaScript>= 1.0.0, < 1.0.1; >= 0.9.9, < *—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-18329. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-18329.md
Affected: F5 NGINX JavaScript >= 1.0.0, < 1.0.1; >= 0.9.9, < *
Fixed in: F5 NGINX JavaScript 1.0.1

Steps:
1. Search this machine and project for F5 NGINX JavaScript: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-18329 being exploited?

There is no confirmed exploitation: CVE-2026-18329 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-18329?

High: CVSS 8.8 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-18329?

F5 NGINX JavaScript >= 1.0.0, < 1.0.1; >= 0.9.9, < *.

Is there a fix for CVE-2026-18329?

Yes. Fixed in F5 NGINX JavaScript 1.0.1. Vendor workaround: * To secure your NGINX njs js_access handler against unhandled exceptions such as JSON.parse failures, wrap your logic in a robust try/catch block with a default strict deny policy that returns an HTML 403 Forbidden response code. For example:async function auth(r) {   try {     // 1. Guard input: Safely check for the Authorization header     var authHeader = r.headersIn ? r.headersIn.Authorization : undefined;     if (!authHeader) {       r.warn("Access Denied: Missing Authorization header.");       return r.return(401);     }     // 2. Perform the async HTTP request     let reply = await ngx.fetch(' http://authsvc/check ', {       headers: { Authorization: authHeader }     });     // 3. Validate response status     if (reply.status !== 200) {       r.warn(`Access Denied: Auth service returned status ${reply.status}`);       return r.return(401);     }     // 4. Read response body     // Note: ngx.fetch body is read asynchronously using .text() or .json()     let responseText = await reply.text();     let payload = {};     // 5. Guard JSON.parse explicitly     try {       payload = JSON.parse(responseText);     } catch (jsonError) {       r.error(`Security Warning: Failed to parse auth service JSON payload: ${jsonError.message}`);       // Explicitly deny the request due to malformed auth response payload       return r.return(403);     }     // 6. Validate the contents of the parsed JSON     if (payload.authorized !== true) {       r.warn("Access Denied: Client token validated but not authorized.");       return r.return(403);     }     // 7. Success: Explicitly allow the request to proceed     return r.return(200);   } catch (globalError) {     // 8. Global Catch-All: Block the bypass vulnerability on any script exception     r.error(`Security Critical: Unhandled exception in auth handler: ${globalError.toString()}`);     // Always return 403 (Deny) on exception to guarantee a fail-closed state.     return r.return(403);   } } export default { auth }; * Place a security enforcement layer such as F5 WAF for NGINX or BIG-IP Advanced WAF before NGINX njs to prevent malformed requests. Configure the WAF to do the following: * Validate JSON syntax Enforce request body limits Block malformed payloads * Reject unexpected content types Apply API schema validation

How do I check if I'm affected by CVE-2026-18329?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors