nginx 1.30

Last reviewed Oct 13, 2026

Export as PDF

Prompt Details

Prompt Composition

1prompt
  1. nginx 1.30108 lines · 3.4K tokens

CWE Coverage

  • 15
  • 20
  • 59
  • 73
  • 79
  • 117
  • 250
  • 256
  • 287
  • 295
  • 297
  • 306
  • 319
  • 352
  • 400
  • 488
  • 522
  • 524
  • 532
  • 551
  • 552
  • 601
  • 614
  • 636
  • 647
  • 732
  • 770
  • 772
  • 799
  • 807
  • 829
  • 863
  • 918
  • 942
  • 1004
  • 1275
  • 1395

Prompt Preview

Apply these rules to open-source nginx 1.30 as an HTTP reverse proxy and, where enabled, a stream TCP/UDP proxy. Mail proxying, njs application code, NGINX Plus-only modules, and Kubernetes controller policy need their own guidance.

Build and process boundaries

  • Run the newest patch of an nginx line that still receives security fixes. Let a trusted package repository or line-following image tag select the patch, look up current support instead of guessing a version, never loosen an existing constraint to make installation succeed, and audit the deployed binary, modules, TLS library, and image in CI separately from application dependencies.
  • Inspect nginx -V for the actual build and enabled modules. Use only trusted modules that the deployment needs; a directive documented for the commercial product is not automatically available in open-source nginx.
  • Run workers under a dedicated unprivileged account and grant only the capabilities, files, and network destinations the service needs.
  • Keep configuration, included files, dynamic modules, certificates, private keys, and reload control writable only by trusted administrators.
  • Keep writable upload, cache, body-temporary, proxy-temporary, and log directories separate from executable code and public document roots.
  • Restrict direct access to application backends so clients cannot bypass the proxy's authentication, header rewriting, or transport policy.

Virtual servers and request identity

  • Declare the intended listeners and server_name values explicitly, with a default virtual server that rejects unknown