An authentication bypass exists in the nginx reverse proxy configurations provided with the software for Helm chart, Docker Compose, Kubernetes, and OpenShift deployments. The issue occurs because nginx forwards a client-supplied `x-ditto-pre-authenticated` header to the gateway on locations where nginx authentication is not applied, such as the `/api/2/connections` endpoint. Due to differences in URI normalization, nginx forwards the raw URI while the gateway does not treat an encoded slash (`%2f`) as a path separator. This allows a remote attacker to use a crafted request path to route through an unauthenticated location and reach the Things and Policies HTTP API. When pre-authentication is enabled, an attacker can impersonate arbitrary policy subjects to read, modify, and delete Things, read Policies, and send messages to devices. Additionally, the Helm chart Ingress in versions 3.9.0 through 3.9.9 routes requests directly to the gateway without managing the header, and the WebSocket Ingress in versions 3.3.0 through 3.8.15 fails to set the header, enabling impersonation without path manipulation.