{"id":"CVE-2019-10770","aliases":["CVE-2019-10770","GHSA-r2wf-q3x4-hrv9"],"related":[],"kind":"vulnerability","state":"published","title":"Default development error handler in Ratpack is vulnerable to HTML content injection (XSS)","summary":"All versions of io.ratpack:ratpack-core from 0.9.10 inclusive and before 1.7.6 are vulnerable to Cross-site Scripting (XSS). This affects the development mode error handler when an exception message contains untrusted data. Note the production mode error handler is not vulnerable - so for this to be utilized in production it would require users to not disable development mode.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"All versions of io.ratpack:ratpack-core from 0.9.10 inclusive and before 1.7.6 are vulnerable to Cross-site Scripting (XSS). This affects the development mode error handler when an exception message contains untrusted data. Note the production mode error handler is not vulnerable - so for this to be utilized in production it would require users to not disable development mode.","source":"cvelist"},{"lang":"en","text":"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')](https://cwe.mitre.org/data/definitions/79.html) (aka. XSS) in the development error handler. An attacker can utilize this to perform XSS when an exception message contains untrusted data.\n\nAs a simplistic example:\n```java\nRatpackServer startedServer = RatpackServer.start(server -> {\n    server.handlers(chain -> chain.all(ctx -> {\n        // User supplied query parameter\n        String message = ctx.getRequest().getQueryParams().get(\"message\");\n        // User supplied data appended to the message in an exception\n        throw new RuntimeException(\"An error occurred: \" + message);\n    }));\n});\n```\n\n### Impact\n\n - Cross-Site Scripting\n\n### Patches\n\nThis vulnerability has been patched in Ratpack version 1.7.6.\n\n### Workarounds\n\nIf you are unable to update your version of Ratpack, we recommend the following workarounds and mitigations.\n\n - Ensure that development mode is disabled in production.\n - Don't use real customer data (ie. untrusted user input) in development.\n\n### References\n\n - [Ratpack development mode](https://ratpack.io/manual/current/api/ratpack/server/ServerConfigBuilder.html#development-boolean-)\n - [Code Patch - a3cbb13](https://github.com/ratpack/ratpack/commit/a3cbb13be1527874528c3b99fc33517c0297b6d3)\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n - Open an issue in [ratpack/ratpack](https://github.com/ratpack/ratpack/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)\n - Ask in our [Slack channel](https://slack-signup.ratpack.io/)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Todas las versiones de io.ratpack:ratpack-core desde 0.9.10 inclusive y anteriores a 1.7.6, son vulnerables a un ataque de tipo Cross-site Scripting (XSS). Esto afecta al manejador de errores del modo de desarrollo cuando un mensaje de excepción contiene datos no confiables. Tome en cuenta que el manejador de errores del modo de producción no es vulnerable, para que este sea utilizado en producción requeriría que los usuarios no deshabiliten el modo de desarrollo.","source":"nvd"}],"published":"2020-01-27T19:28:20.000Z","modified":"2026-06-17T02:11:38.370Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"all versions from 0.9.10 inclusive and before 1.7.6","status":"affected"}],"product":"io.ratpack:ratpack-core","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.6"}],"ecosystem":"Maven","package":"io.ratpack:ratpack-core","purl":"pkg:maven/io.ratpack/ratpack-core","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.9.10","fixed":"1.7.6"}],"vendor":"ratpack","product":"ratpack","cpe":"cpe:2.3:a:ratpack:ratpack:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JAVA-IORATPACK-534882","tags":["exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ratpack/ratpack/security/advisories/GHSA-r2wf-q3x4-hrv9","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10770","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ratpack/ratpack/commit/a3cbb13be1527874528c3b99fc33517c0297b6d3","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-10770","url":"https://www.cve.org/CVERecord?id=CVE-2019-10770","licence":"CVE Terms of Use","modified":"2024-08-04T22:32:01.587Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r2wf-q3x4-hrv9","url":"https://github.com/advisories/GHSA-r2wf-q3x4-hrv9","licence":"CC-BY-4.0","modified":"2026-03-13T22:11:49.675Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-10770","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10770","licence":"Public domain","modified":"2026-06-17T02:11:38.370Z"}],"updatedAt":"2026-11-25T22:57:49.363Z","epss":{"score":0.00857,"percentile":0.59511,"date":"2026-12-01T12:00:22.000Z"}}