CVE-2026-18329NGINX ngx_http_js_module vulnerability
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libnginx-mod-js | Fix pending | UBUNTU-CVE-2026-18329 | |
| Ubuntu 26.04 | libnginx-mod-js | Fix pending | UBUNTU-CVE-2026-18329 | |
| Ubuntu 24.04 | libnginx-mod-js | Under investigation | UBUNTU-CVE-2026-18329 | |
| Debian 14 | libnginx-mod-js | Fixed | 1.0.1-1 | DEBIAN-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.
- F5 NGINX JavaScript: affected: 1.0.0 to before 1.0.1, 0.9.9 and later; fixed in
1.0.1
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:
- https://my.f5.com/manage/s/article/K000162599 (vendor-advisory)
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.