On 5 November 2026 the Kubernetes Security Response Committee published CVE-2026-116472 for ingress-nginx. The severity is low (CVSS 2.7): someone who can create an Ingress can use the mirror-target annotation to corrupt an unauthenticated configuration API inside the controller, which drops all traffic through it until a configuration change or a restart. The sentence that matters is further down: "Kubernetes will not be issuing a fix for this CVE, because ingress-nginx maintenance ended in March 2026."
That is the retirement announced on 11 November 2025 doing what it said it would: no releases, no bug fixes, no security updates, and a repository that is now archived. It is the first ingress-nginx entry in the official CVE feed since maintenance ended and the first without a fix; the seven entries from February and March 2026 all list fixed versions. This one is mild. Several earlier ones were configuration injection, and the next of that kind will not get a patch either.
Who this is for: platform engineers who still run the community ingress-nginx controller and have to plan the move.
What you walk away with: an inventory, a table of what maps to Gateway API and what doesn't, a cut-over sequence with rollback, and mitigations for clusters that can't move yet.
This is the how-to. For what Gateway API is, read Gateway API vs Ingress first. Tested 17 November 2026: ingress-nginx v1.15.1 on GKE 1.36.4; the Gateway API side with Envoy Gateway v1.10.0 and Gateway API v1.6.1 on single-node kind (Kubernetes v1.37.0). Not run: a real cut-over (DNS, load balancers), cert-manager, external-dns, other implementations.
One naming trap: ingress-nginx (kubernetes/ingress-nginx, the community project, retired) and NGINX Ingress Controller (by F5, a separate product) share only the proxy.
Step 1: inventory
The retirement announcement gives the check for whether you run it:
kubectl get pods --all-namespaces --selector app.kubernetes.io/name=ingress-nginx
Then save every Ingress to a file:
kubectl get ingressclass
kubectl get ingress -A -o json > ingresses.json
This counts every ingress-nginx annotation in use, per class. The class comes from the spec or the older annotation; - means neither, and ingress-nginx serves those only when run with --watch-ingress-without-class:
PREFIX=nginx.ingress.kubernetes.io # or your --annotations-prefix
jq -r --arg p "$PREFIX/" '
.items[]
| (.spec.ingressClassName // .metadata.annotations["kubernetes.io/ingress.class"] // "-") as $class
| (.metadata.annotations // {}) | keys[]
| select(startswith($p)) | "\($class)\t\(ltrimstr($p))"' ingresses.json | sort | uniq -c | sort -rn
And this lists the Ingresses carrying the expensive ones, with the start of each value:
jq -r --arg p "$PREFIX/" '
.items[] | . as $i | (.metadata.annotations // {}) | to_entries[]
| select(.key | startswith($p)) | .key |= ltrimstr($p)
| select(.key | test("snippet|^auth-|^limit-|affinity|session-cookie|use-regex|rewrite-target|^mirror-|modsecurity|custom-http-errors"))
| [$i.metadata.namespace, $i.metadata.name, .key, (.value | gsub("\\s+"; " ") | .[0:60])] | @tsv' ingresses.json | sort
Three more places hold behaviour, named by the controller's arguments:
--configmap: global timeouts, body size, TLS and HSTS, proxy protocol and forwarded headers,allow-snippet-annotations.--tcp-services-configmapand--udp-services-configmap, if you expose non-HTTP ports.--default-backend-service, and custom error pages.
Step 2: know the behaviour you are about to lose
A translation can be correct on paper and still cause an outage, because ingress-nginx does things nobody asked for. The Kubernetes blog post "Before You Migrate" (27 February 2026) documents five:
- Regex paths are case-insensitive prefix matches. Istio, Envoy Gateway and kgateway match the full path, case-sensitively.
use-regexon one Ingress applies to every path of that host, across all Ingresses. AnExactpath with a typo works today and returns 404 tomorrow.rewrite-targetimpliesuse-regex, without the annotation to warn you.- A missing trailing slash gets a 301 to the path with it. Conformant implementations add no redirects by themselves.
- URLs are normalised before matching (
.,..,//). Normalisation varies per implementation and Gateway API cannot configure it.
Three defaults from the ingress-nginx documentation belong there too:
- HTTPS redirect. HTTP is redirected to HTTPS (308) for every Ingress with TLS. Gateway API does not do that. ingress2gateway generates a redirect HTTPRoute for port 80; a hand-written translation needs its own.
- HSTS.
Strict-Transport-Securityis sent by default (one year,includeSubDomains). Gateway API has no HSTS setting; add the header with aResponseHeaderModifierif you rely on it. Browsers that cached it accept neither HTTP nor a certificate error, so the Gateway needs valid certificates from the first request. - Limits. A 1 MB request body (
proxy-body-size: 1m), 60-second read and send timeouts, response buffering off. Envoy Gateway v1.10 has no body limit and cuts every request, streaming included, after 15 seconds unless the route setstimeouts. Look up your new proxy's defaults.
Before translating a host, pull a day of real request paths from the access logs and keep them as a test set.
Step 3: what maps to Gateway API and what doesn't
The current Gateway API release is v1.7.0 (29 October 2026). "Standard" means the field is in its Standard channel CRDs, "Experimental" that it needs the other channel. Either way your implementation must support the feature or offer its own policy resource.
| ingress-nginx | Gateway API v1.7 | Channel | Notes |
|---|---|---|---|
rewrite-target without capture groups |
URLRewrite filter |
Standard | ingress2gateway flags rewrites using $1 as unsupported |
ssl-redirect, permanent-redirect, temporal-redirect |
RequestRedirect filter |
Standard | |
canary-weight; canary-by-header with an exact value |
backendRefs[].weight; header match |
Standard | canary-by-cookie and canary-by-header-pattern are not converted |
proxy-read-timeout, proxy-send-timeout |
timeouts.request |
Standard | TCP-level in nginx, whole-request here. Check WebSocket and streaming routes |
enable-cors, cors-* |
CORS filter |
Standard since v1.5 | |
backend-protocol: HTTPS or GRPC, proxy-ssl-* |
BackendTLSPolicy, GRPCRoute | Standard | No equivalent for verify depth and protocol list |
ssl-passthrough |
TLSRoute, listener in Passthrough mode |
Standard since v1.5 | |
mirror-target; proxy-next-upstream* |
RequestMirror filter; HTTPRoute retry |
Standard; retry since v1.7 |
Not converted by ingress2gateway |
tcp-services, udp-services ConfigMaps |
TCPRoute, UDPRoute | Standard since v1.6 | |
auth-url, auth-signin |
ExternalAuth filter |
Experimental | Envoy Gateway v1.10 rejects it |
affinity: cookie, session-cookie-* |
Session persistence | Experimental | On XBackend since v1.7; the route-level form is deprecated |
auth-type: basic, limit-rps, limit-connections, proxy-body-size, proxy-buffering, enable-modsecurity, custom-http-errors |
None | — | Implementation-specific policy, where one exists |
The five *-snippet annotations |
None | — | See below |
The lower rows decide the destination: each needs a resource that only your chosen implementation understands. Gateway API makes routes portable. It does not make policies portable yet.
Snippets
A snippet is raw nginx configuration, so there is nothing to translate it to. ingress2gateway reports it as unsupported and moves on. Sort each one: header changes become RequestHeaderModifier or ResponseHeaderModifier filters, redirects and rewrites become RequestRedirect or URLRewrite. Path blocks, fixed responses, Lua and map blocks need an implementation-specific extension, the application, or a redesign. The ones nobody remembers: remove them in a test environment and watch.
Step 4: let ingress2gateway do the first pass
ingress2gateway is the SIG Network tool for this; v1.2.0 (7 July 2026) is the latest release. It reads Ingresses from the cluster, or from manifests with --input-file, and prints Gateway API resources:
ingress2gateway print --providers=ingress-nginx --all-namespaces > gwapi.yaml
--ingress-nginx-ingress-class selects the class (default nginx), and --emitter adds implementation-specific resources (agentgateway, airlock-microgateway, envoy-gateway, gce, kgateway).
The project calls itself a migration assistant, and its warnings are the valuable part. Then read the output: in my test it warned about auth-url and basic auth yet wrote those hosts as open routes (200 where nginx gave 401), and dropped whitelist-source-range silently.
v1.2.0 is built against Gateway API v1.5.0. Its v1 output is still served by the v1.7 CRDs, but it emits nothing that graduated later; check --allow-experimental-gw-api output against the CRDs you install. And the generated Gateway takes its gatewayClassName from the Ingress class; edit it to match your new controller.
Step 5: choose a destination
The Steering and Security Response Committees were blunt in January 2026: "None of the available alternatives are direct drop-in replacements." Another Ingress controller keeps your Ingress objects, but the Ingress API is frozen and you rewrite annotations twice if Gateway API follows later. With 20 Ingresses and no snippets it may still be the right call. For a Gateway API implementation, the project's guidance is conformance reports, the proxy your team knows, and what your cloud provider or CNI ships.
Step 6: parallel run and cut-over
The Gateway API migration guide recommends running the new controller next to ingress-nginx, each with its own external address, so the new one takes no traffic until DNS says so.
- Install the CRDs and the controller.
kubectl apply --server-side -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.7.0/standard-install.yaml, unless your implementation ships or pins its own version: Envoy Gateway v1.10's install manifest replaced these CRDs with v1.6.1 Experimental, without a warning. If the cluster already has Gateway API CRDs, read theirgateway.networking.k8s.io/bundle-versionandchannelannotations first: Standard CRDs applied over older Experimental ones leave existing TLSRoutes unusable. - Apply Gateway and routes. Leave every Ingress in place. Each HTTPS listener needs its certificate Secret before step 4.
- Check status before traffic.
kubectl get gateway -Ashould showProgrammedand an address, which must not be the one ingress-nginx uses (without a load balancer Envoy Gateway reportsAddressNotAssignedyet serves traffic);kubectl get httproute -A -o yamlshould showAcceptedandResolvedRefsasTruefor each parent. - Test against the new address with the real hostname:
It has to pass withoutcurl -sS -o /dev/null -w '%{http_code} %{redirect_url}\n' \ --resolve shop.example.com:443:203.0.113.20 https://shop.example.com/api/health-k: a certificate error here is an outage after the switch. Replay the path list from step 2 against both addresses and diff status codes andLocationheaders. Include no trailing slash, mixed case,//, plain HTTP on port 80, a large upload, a request that auth should reject, and a WebSocket, gRPC or other long-running request if you serve any. - Lower the DNS TTL to about 60 seconds, then wait at least the old TTL.
- Move one low-risk hostname. Watch error rates and latency on the new controller and requests draining from the old one. Open connections (WebSockets, gRPC streams, keep-alive) stay on ingress-nginx until they close.
- Move the rest in batches.
- Decommission after a quiet period longer than your longest client DNS cache: Ingresses first, then the controller. A Certificate that cert-manager created from an Ingress annotation is owned by that Ingress and deleted with it, so its Secret stops renewing. And external-dns with
--policy=syncremoves records whose only source was the Ingress. Confirm the Gateway side owns both first.
Rollback through step 7 is a DNS change back, which takes up to one TTL. That is why nothing on the old side may be modified or deleted until the end.
If external-dns manages your records, the cut-over works differently. It needs --source=gateway-httproute and RBAC for the Gateway API resources before it sees routes. Its FAQ (v0.24.0) says that when an Ingress and an HTTPRoute claim the same name, the record stays with whichever acquired it first and moves only when the old source stops emitting the hostname. So applying the routes changes nothing; the cut-over is the moment the Ingress stops claiming the name. The FAQ's way to do that without deleting the Ingress is the annotation external-dns.kubernetes.io/ingress-hostname-source: annotation-only (with no hostname annotation); removing it is the rollback.
The new address also changes firewall allow-lists, CDN or WAF origin settings and monitoring pinned to the old IP. Test the client IP on purpose: whether backends, logs and IP allow-lists still see it depends on the new Service's externalTrafficPolicy and on proxy protocol and X-Forwarded-For handling (use-proxy-protocol and use-forwarded-headers in the ingress-nginx ConfigMap). A load balancer that sends proxy protocol to a listener that does not expect it, or the reverse, breaks every connection.
cert-manager
If cert-manager issues your certificates from Ingress annotations, three things change, according to its Gateway documentation:
- Gateway API support must be switched on (
config.gatewayAPI.enabled: true), and cert-manager restarted if the CRDs were installed after it started. - The
cert-manager.io/issuerorcert-manager.io/cluster-issuerannotation moves from the Ingress to the Gateway. cert-manager creates a Certificate per listener that has a hostname,tls.mode: Terminateand acertificateRefsentry in the Gateway's own namespace. - Certificates therefore move to the Gateway's namespace, and from application teams to the platform team. ListenerSet gives that back; in cert-manager it is still alpha, behind a feature gate.
ACME HTTP-01 is the part to rehearse. A solver for the nginx ingress class answers through ingress-nginx; after cut-over the challenge has to go through the Gateway, which needs a listener on port 80. The solver needs no feature gate beyond the setting above:
solvers:
- http01:
gatewayHTTPRoute:
parentRefs:
- name: public
namespace: gateway-system
kind: Gateway
During the parallel run the hostname still resolves to the old controller, so HTTP-01 cannot validate through the Gateway yet, and during a weighted DNS shift a challenge can land on either side. Two ways out:
- DNS-01, which does not care where HTTP traffic goes.
- Copy the existing certificate Secrets into the Gateway's namespace for the cut-over. A copy does not renew. Add the issuer annotation and the Gateway solver once DNS has moved, and check that cert-manager issues its own certificate before the copy expires.
Either way, an Issuer that still has only the ingress solver will fail its next HTTP-01 renewal once DNS points at the Gateway, weeks after the migration looked finished.
If you can't migrate yet
Staying is a risk decision, so make it an explicit one with a date. Until then:
Close CVE-2026-116472. The advisory gives two mitigations. One is setting annotations-risk-level to Medium or Low in the controller ConfigMap. The default is High, and mirror-target is rated High. So are auth-url and auth-signin. On v1.15.1 new Ingresses with either were rejected; an existing one worked until the controller restarted, then its host returned 404. Move external auth first. The other is an admission rule that rejects the annotation:
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata: {name: deny-mirror-target}
spec:
matchConstraints:
resourceRules:
- {apiGroups: ["networking.k8s.io"], apiVersions: ["v1"], operations: ["CREATE", "UPDATE"], resources: ["ingresses"]}
validations:
- expression: "!has(object.metadata.annotations) || !('nginx.ingress.kubernetes.io/mirror-target' in object.metadata.annotations)"
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicyBinding
metadata: {name: deny-mirror-target}
spec: {policyName: deny-mirror-target, validationActions: ["Deny"]}
Admission only sees new writes. Check existing objects with the last inventory command from step 1: the advisory says localhost addresses in mirror-target may indicate an exploitation attempt.
Shrink the attack surface. These come from earlier advisories and the ingress-nginx documentation, not from this advisory. Restrict who can create and update Ingresses: this CVE and the configuration-injection ones in the 2026 feed start from that permission. Keep allow-snippet-annotations at its default of false. Keep the controller's admission webhook unreachable from the pod network (see a minimum viable NetworkPolicy): CVE-2025-1974 let anything on the pod network exploit it.
Maintained forks. The advisory states that SUSE has issued a fix in version 1.15.2-prime1 of its fork. It is the only fork I can name from a primary source; who may use it and on what terms is for SUSE to say. If a vendor maintains ingress-nginx for you, get in writing which CVEs it covers and until when, and treat it as time bought.