Upgrade and vulnerability response
Identify the deployed build before assessing risk
A vulnerability response starts with an asset inventory: binary, package revision, build flags, modules, TLS libraries, enabled features, exposure and owner. nginx -v shows an upstream-style version and -V includes build details. A distributor may backport fixes without changing the upstream version string. Match the actual package revision against the distributor advisory, and upstream source builds against the upstream advisory. Do not infer security solely from a version banner. The read-only commands below are for an authorized host; avoid dumping real configs or secrets into reports.
nginx -vnginx -Vdpkg-query -W -f='${Package} ${Version}\n' nginxInterpret dated advisory evidence
Read official affected ranges, fixed releases and prerequisites. At the 2026-11-28 documentation check, the 2026-11-23 upstream news entry identified stable 1.30.8 and mainline 1.31.10 as releases containing a security fix. This dated example is not a permanent baseline or a claim that any distribution package is patched. Confirm current advisories and support before choosing a target. If the package fix status is unclear, record unknown and escalate; do not test by triggering the vulnerability. Prioritize reachable features, business impact and compensating controls.
Asset: docs-proxy-01Exposure: public HTTPSPackage revision: inventory pendingAdvisory match: unknown until vendor evidenceOwner: edge operationsAction: review fixed build and stage regression testsStage before activating changes
Build a reviewed candidate in an isolated environment with compatible modules and libraries. Save the old config, package metadata and a recovery path. Run nginx -t on the candidate, then test ordinary requests: intended host, unknown host, valid document, missing page, method denial, oversized body and expected security headers. A successful syntax test does not show the active worker serves the new binary or config. For a config-only change, an approved reload can apply a validated configuration gracefully. A binary update may need a service restart or a documented live upgrade sequence; do not assume reload replaces the master executable.
nginx -p "$LAB/" -c nginx.conf -tVerify, roll back and close the incident
Observe error rates, response contracts and worker/process version after rollout. If checks fail, stop promotion, restore reviewed configuration or an approved safe software version, then retest. Returning to a known vulnerable build is not a routine fix; isolate or mitigate exposure and obtain an incident-owner decision. Document evidence, remaining affected assets, monitoring and remediation owner. Treat disabling a module as a feature-specific temporary measure requiring verification, not proof of a patch. The following table is a simple release gate; collect actual evidence rather than assuming all rows pass.
Package/advisory match: pendingCandidate syntax: pendingHTTP contract: pendingSecurity headers on errors: pendingRuntime version after rollout: pendingRecovery drill: pendingCheck Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Upgrade and vulnerability response
Build a patch-response workflow using version and package evidence, official advisories, staged tests and a reviewed rollback plan.
Why is nginx -v insufficient for a distribution vulnerability assessment?
What is a successful nginx -t proof of?
What should you do if an advisory match is unknown?
Does a config reload necessarily replace the running master executable?
What is a safe rollback objective?