CVE-2026-42945 affects the NGINX rewrite module and requires a specific vulnerable rewrite directive pattern.
Kong Route regex matching is handled by Kong’s router and isn’t the same as NGINX rewrite directive usage. Kong hasn’t identified the vulnerable NGINX rewrite configuration pattern in the default NGINX configuration that Kong Gateway generates.
Users of custom NGINX directives or templates may have exposure, however.
Am I affected?
If you use custom NGINX directives or templates, check your custom NGINX configuration, including nginx.conf and nginx-kong.conf.
Review the effective nginx.conf and nginx-kong.conf files for rewrite, if, or set directives, especially chained rewrite rules using unnamed captures such as $1 or $2.
Mitigation
If you find any such custom rewrite configuration, replace it with Kong Route matching or other Kong-native routing configuration where possible.