- Package
- drupal/restrict_route_by_ip
- Fixed in
- 1.3.1, 2.0.1
- Published
- Wed 7 Oct 2026, 17:55 LisbonUpdated Mon 26 Oct 2026, 04:26 Lisbon
In plain words
The module can fail to enforce IP address restrictions on some dynamic routes, allowing access that should be blocked. The impact depends on how the site uses the module and whether it has dynamic routes.
Am I affected?
Look for drupal/restrict_route_by_ip and its installed version in composer.lock. The advisory lists 1.3.1 and 2.0.1 as fixed versions but gives no affected version ranges. Check whether your site uses the module to restrict dynamic routes by IP address, as only a subset of dynamic routes is affected.
What to do
Check which version you have, then update to a fixed release for your branch (1.3.1, 2.0.1):
composer show drupal/restrict_route_by_ip | grep versions
composer update drupal/restrict_route_by_ip
If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.
The advisory's description
This module enables you to restrict access to routes by IP address.
The module doesn't reliably restrict a subset of dynamic routes, leading to an access bypass vulnerability. The impact depends on how a site uses this module and whether it has any routes that are dynamic.
The advisory
- OSV.dev: DRUPAL-CONTRIB-2026-216
- The week's digest, with the other advisories from 5 Oct 2026
- All advisories for drupal/restrict_route_by_ip