Slim 4.16.1 released
We have released Slim 4.16.1 today, which fixes a CSRF bypass using _METHOD overrides (GHSA-w62v-rcw8-mxvw). If you use MethodOverrideMiddleware together with CSRF middleware such as Slim-Csrf, please upgrade to Slim 4.16.1.
MethodOverrideMiddleware now ignores a _METHOD value of GET, HEAD, OPTIONS, QUERY, TRACE or CONNECT, so a cross-site form POST stays a POST and can’t skip the CSRF check. _METHOD can still set PUT, PATCH, DELETE and custom methods.
If you use Slim-Csrf, please also upgrade it to 1.5.2, which fixes a related issue (GHSA-p7vx-gggp-8hm7). Slim 3.13.2 and Slim-Csrf 0.8.4 have the same fixes for Slim 3 applications.
The full changelog can be seen here.