Default development error handler in Ratpack is vulnerable to HTML content injection (XSS)

2020-01-27T19:28:20
ID GHSA-R2WF-Q3X4-HRV9
Type github
Reporter GitHub Advisory Database
Modified 2021-02-17T17:32:40

Description

Versions of Ratpack from 0.9.10 through 1.7.5 are vulnerable to CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (aka. XSS) in the development error handler. An attacker can utilize this to perform XSS when an exception message contains untrusted data.

As a simplistic example:

This vulnerability has been patched in Ratpack version 1.7.6.