• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 29091554593 / 19
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: refactor/nest-path-in-pattern
DEFAULT BRANCH: master
Ran 10 Jul 2026 12:09PM UTC
Files 167
Run time 10s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jul 2026 12:02PM UTC coverage: 95.196% (-0.008%) from 95.204%
29091554593.19

Pull #2789

github

ericproulx
Harden mounted-app auth surface and error HTML escaping

Two security-relevant fixes surfaced by a review of Grape::API:

- Grape::Middleware::Error#rack_response only escaped the error message
  when the response content-type was exactly 'text/html', so a
  parameterized value such as 'text/html; charset=utf-8' skipped escaping
  and could reflect an unescaped message into an HTML response. Compare the
  media type only.

- A bare Rack app mounted with `mount` is called directly and never goes
  through the endpoint middleware stack, so an API's authentication
  middleware does not wrap it and the mount is reachable unauthenticated.
  Mounted Grape APIs are unaffected. Warn at compile time when a bare Rack
  app is mounted under configured authentication so the bypass isn't silent.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pull Request #2789: Harden mounted-app auth surface and error HTML escaping

1106 of 1226 branches covered (90.21%)

Branch coverage included in aggregate %.

3551 of 3666 relevant lines covered (96.86%)

970.73 hits per line

Source Files on job run-3.4-gemfiles/rails_8_1.gemfile - 29091554593.19
  • Tree
  • List 167
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 29091554593
  • d8ca6bfa on github
  • Prev Job for on security/mounted-rack-auth-and-html-escape (#28782563800.12)
  • Next Job for on security/mounted-rack-auth-and-html-escape (#29091580878.32)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc