CVEfocus › CVE database › CVE-2026-18329

CVE-2026-18329NGINX ngx_http_js_module vulnerability

CVSS 8.2 HighEPSS 0.6% (higher than 46% of CVEs)Published 2026-09-02Updated 2026-09-02Assigner: f5

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.

CWE-636

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
2Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libnginx-mod-jsFix pendingUBUNTU-CVE-2026-18329
Ubuntu 26.04libnginx-mod-jsFix pendingUBUNTU-CVE-2026-18329
Ubuntu 24.04libnginx-mod-jsUnder investigationUBUNTU-CVE-2026-18329
Debian 14libnginx-mod-jsFixed1.0.1-1DEBIAN-CVE-2026-18329

What the vendor says

As published in the CVE record by f5, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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…

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.