Cve/nginx2root
Read-only scanner for CVE-2026-123007 ("nginx2root") — the nginx HTTP/2 flow-control bug that yields unauthenticated remote code execution as the nginx worker (CVSS v4 9.2, actively exploited). It affects nginx 1.9.5 through 1.31.8, but ONLY when HTTP/2 is enabled on a listener.
This model detects that exposure and never sends the HTTP/2 exploit;
its one network touch is a benign TLS ALPN negotiation (does the listener
offer h2?). Patterned on @shrug/cve/xo-empty-token: per-signal checked
honesty flags where any unreadable bearing signal can never let a target read
"safe".
Verdict tiers:
not-present— nginx was looked for and is not serving the target.present-not-vulnerable— nginx present but its version is outside 1.9.5..1.31.8, or HTTP/2 is disabled everywhere (full-config read), so the flaw is not reachable. Reached only from signals actually read.vulnerable-http2-enabled— nginx present, version in range, and HTTP/2 enabled on a listener: at risk, mitigate now.indeterminate— a bearing signal could not be read, so the target is neither cleared nor confirmed at-risk (the honesty rule).Tier1 — network: a
Server:response header (presence + maybe version) and a TLS ALPNh2check, both read-only, over injectable seams; TLS verification always on (private-CA cert via the optionalcaCert).Tier2 — read-only SSH:
nginx -vfor the authoritative version andnginx -T(full effective config) grepped ON-HOST for an enabledhttp2directive orlisten ... http2parameter. Only the ON/OFF verdict leaves the host; config content never does.
scan one target; scanFleet fans out over many in one locked run.
mitigate disables HTTP/2 preview-first: it defaults to a dry-run that
records the exact per-file edits and commands and changes nothing; a real
change needs dryRun=false AND confirm=true, backs up each file, applies
the edits, runs nginx -t, and reloads only if the test passes.
| Argument | Type | Description |
|---|---|---|
| baseUrl | string | Target URL for this entry |
| caCert? | string | Per-target CA PEM |
Resources
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
Spawns a subprocess with Deno.Command().
- models/nginx2root.ts:540 — no reason given
- models/nginx2root.ts:556 — no reason given