sinatra/sinatra — pull request #883 by ab (2014-06-12 01:49:15+00:00)
Title: Potential for reflected XSS in development mode 404 page

I don't believe this affects any major browsers since you need a browser that isn't doing URL encoding, but for clients that will pass the URL unmodified there is an XSS in the development mode 404 page.

e.g. `curl http://example.com/1`

`request.path_info` is echoed directly onto the page:

https://github.com/sinatra/sinatra/blob/8b39bbdd2d260e7de31571d5591c0c6299ba955b/lib/sinatra/base.rb#L1944