rack-protection breaking changes
rack-protection 4.0.0 (January 19, 2024) is its newest release with breaking changes, 4 of them. The first: Drops support for Rack 2, requiring Rack 3 in rack-protection 4.0.0. Every breaking API change we have recorded in rack-protection on RubyGems: 6 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.2.2. Source repository
Its 4.0.0 release requires Ruby 2.7.8 or later. Ruby end of life dates.
rack-protection 4.0.0 breaking changes
- Removed
Code that depends on Rack 2 behavior must move to Rack 3. github.com - Removed
Rack.Protection.EncryptedCookie
Cookies remain encrypted through Rack::Session::Cookie, which code should use instead. github.com - Behavior changed
Users on older Ruby versions must upgrade Ruby before using this release. github.com - Default changed
session_hijacking
Users who relied on the default must enable session_hijacking protection explicitly. github.com
rack-protection 2.0.0 breaking changes
- Behavior changed
Route patterns are now parsed by Mustermann, so existing route patterns may match differently and should be tested. github.com - Behavior changed
The not_found and error handlers now share 404 behavior, so apps that relied on the old separate handling must check their 404 responses. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.