Sinatra 3.2
Last reviewed Sep 24, 2026
Prompt Details
Prompt Composition
2prompts
- Ruby 3.3113 lines · 5.5K tokens
- Sinatra 3.276 lines · 4.4K tokens
Total189 lines · 10K tokens
CWE Coverage
- 20
- 22
- 23
- 36
- 59
- 74
- 77
- 78
- 79
- 89
- 93
- 95
- 113
- 117
- 208
- 209
- 214
- 250
- 295
- 306
- 307
- 319
- 327
- 328
- 338
- 347
- 352
- 362
- 367
- 378
- 384
- 409
- 427
- 434
- 470
- 502
- 525
- 532
- 552
- 565
- 601
- 611
- 613
- 614
- 639
- 674
- 770
- 772
- 776
- 778
- 807
- 829
- 862
- 863
- 915
- 916
- 918
- 942
- 1004
- 1104
- 1333
- 1336
- 1395
Prompt Preview
Apply these rules only when maintaining Sinatra 3.2, the previous-major series that Sinatra's maintenance policy patches only for severe security issues; they were checked against 3.2.0. Prefer migrating to the current Sinatra 4 series, which receives every security fix and has the host-authorization control Sinatra added in 4.1.0 for CVE-2024-21510.
Apply the Ruby 3.3 baseline first and use that maintained runtime rather than the gem's obsolete Ruby 2.6 minimum. Ruby 3.2 or later avoids the known ETag regular-expression denial-of-service condition, but does not fix the forwarded-host vulnerability.
Version and middleware boundary
- Lock Sinatra, rack-protection, and Rack in
Gemfile.lock. Sinatra 3.2.0 requires Rack 2.2,rack-protection = 3.2.0, Mustermann~> 3.0, and Tilt~> 2.0, so respect those dependencies and don't force Rack 3 or a newer Rack::Protection into this application. Rack's policy covers only its current and previous minor series, though it has kept shipping 2.2 security releases alongside them: take each one, and treat the end of 2.2 security releases as the deadline for moving to Sinatra 4. Watch Rack's own security advisories for those releases instead of waiting forbundle-auditto flag them, because the advisory databases scanners read can list an advisory's fix for Rack 3 and leave out the 2.2 release that fixes it. Audit Rack, the resolved server, and template engines separately from Sinatra. - Expect
bundle-auditto report Sinatra 3.2.0 for CVE-2024-21510 and CVE-2025-61921 on every run, because only Sinatra 4 carries those fixes.