Skip to main content

Cve/nginx2root

@shrug/cve/nginx2rootv2026.11.19.1· MIT· 1d agoBEHAVIORSACCEPTED WARNINGS
01README

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 ALPN h2 check, both read-only, over injectable seams; TLS verification always on (private-CA cert via the optional caCert).

  • Tier2 — read-only SSH: nginx -v for the authoritative version and nginx -T (full effective config) grepped ON-HOST for an enabled http2 directive or listen ... http2 parameter. 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.

02Behaviors1
@shrug/cve/nginx2rootv2026.11.19.1nginx2root.ts
fn scan()
Scan one target (its Server header + TLS ALPN, plus any configured
fn scanFleet(baseUrl: string, caCert?: string)
Fan out over many targets in a SINGLE locked run (not N separate
ArgumentTypeDescription
baseUrlstringTarget URL for this entry
caCert?stringPer-target CA PEM
fn mitigate()
Disable HTTP/2 on the configured Tier2 host(s). PREVIEW-FIRST:

Resources

scan(infinite)— One target's CVE-2026-123007 scan: verdict, per-signal checks with
mitigation(infinite)— One host's HTTP/2-disable plan (affected files, per-line edits, exact
03Stats
A
100 / 100
Downloads
2
Archive size
27.7 KB
  • 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

05Platforms
06Labels