NGINX
CVE-2026-101025: NGINX ngx_http_js_module vulnerability
Description NGINX JavaScript (njs) has a vulnerability where the built-in njs engine leaks a libxml2 parser context when xml.parse() fails.
Published F5 advisory K000162614
Automatic summary from the vendor's CVE record. We haven't written a full analysis of this vulnerability yet.
Affected and fixed versions
| Product / branch | Fixed in |
|---|---|
| NGINX JavaScript 0.7 | 1.0.2 or later |
Always confirm against the vendor advisory, which lists every fixed hotfix.
What it is
Description
NGINX JavaScript (njs) has a vulnerability where the built-in njs engine leaks a libxml2 parser context when xml.parse() fails. The failure path did not register cleanup and the context was not released for the lifetime of the process. An unauthenticated attacker may send requests with malformed XML and can cause unbounded memory growth in long-lived NGINX worker processes.
Impact
This vulnerability may allow remote attackers to send requests that trigger repeated parsing of malformed XML and may lead to NGINX worker termination or denial of service. 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.
Workarounds
Use the QuickJS engine with js_engine qjs;, which is not affected. Where migration is not possible, avoid passing attacker-controlled XML to xml.parse(), reject or rate-limit malformed input, and use worker memory limits.
Sources
Spotted a mistake on this page? Tell us, and we'll fix it.
KEV status, EPSS score and vendor data refreshed automatically, last on 3 Dec 2026.