CVE-2019-17513
io.ratpack:ratpack-core vulnerable to Improper Neutralization of Special Elements in Output ('Injection')
An issue was discovered in Ratpack before 1.7.5. Due to a misuse of the Netty library class DefaultHttpHeaders, there is no validation that headers lack HTTP control characters. Thus, if untrusted data is used to construct HTTP headers with Ratpack, HTTP Response Splitting can occur.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
7.5
An issue was discovered in Ratpack before 1.7.5. Due to a misuse of the Netty library class DefaultHttpHeaders, there is no validation that headers lack HTTP control characters. Thus, if untrusted data is used to construct HTTP headers with Ratpack, HTTP Response Splitting can occur.
- Record
CVE-2019-17513- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:N - Weakness
- CWE-74
- Updated
- 2026-11-02
CVE List No score
An issue was discovered in Ratpack before 1.7.5. Due to a misuse of the Netty library class DefaultHttpHeaders, there is no validation that headers lack HTTP control characters. Thus, if untrusted data is used to construct HTTP headers with Ratpack, HTTP Response Splitting can occur.
- Record
CVE-2019-17513- Updated
- 2026-11-02
EUVDEUVD-2019-0708 No score
An issue was discovered in Ratpack before 1.7.5. Due to a misuse of the Netty library class DefaultHttpHeaders, there is no validation that headers lack HTTP control characters. Thus, if untrusted data is used to construct HTTP headers with Ratpack, HTTP Response Splitting can occur.
- Record
EUVD-2019-0708- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mvqp-q37c-wf9j
7.5
io.ratpack:ratpack-core vulnerable to Improper Neutralization of Special Elements in Output ('Injection')
CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')
Versions of Ratpack 0.9.1 through and including 1.7.4 are vulnerable to HTTP Response Splitting, if untrusted and unsanitized data is used to populate the headers of an HTTP response. An attacker can utilize this vulnerability to have the server issue any HTTP response they specify.
If your application uses arbitrary user input as the value of a response header it is vulnerable. If your application does not use arbitrary values as response header values, it is not vulnerable.
Previously, Ratpack did not validate response header values. Now, adding a header value that contains the header value termination characters (CRLF) produces a runtime exception. Since there is no mechanism for escaping or encoding the termination characters in a String, a runtime exception is necessary.
As potentially dangerous values now cause runtime exceptions, it is a good idea to continue to validate and sanitize any user-supplied values being used as response headers.
We would like to thank Jonathan Leitschuh for reporting this vulnerability.
Vulnerable Example
The following example server uses a query parameter value as a response header, without validating or sanitizing it.
RatpackServer startedServer = RatpackServer.start(server -> {
server.handlers(chain -> chain.all(ctx -> {
// User supplied query parameter
String header = ctx.getRequest().getQueryParams().get("header");
// User supplied data used to populate a header value.
ctx.header("the-header", header)
.render("OK!");
}));
});
Sending a request to the server with the following value for the header query param would allow the execution of arbitrary Javascript.
Content-Type: text/html
X-XSS-Protection: 0
<script>alert(document.domain)</script>
Impact
- Cross-User Defacement
- Cache Poisoning
- Cross-Site Scripting
- Page Hijacking
Patches
This vulnerability has been patched in Ratpack version 1.7.5.
Root Cause
The root cause was due to using the netty DefaultHttpHeaders object with verification disabled.
This vulnerability is now more clearly documented in the Netty documentation: https://github.com/netty/netty/pull/9646
Workarounds
The workaround for this vulnerability is to either not use arbitrary input as response header values or validate such values before being used to ensure they don't contain a carriage return and/or line feed characters.
References
- CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')
- Fix commit: https://github.com/ratpack/ratpack/commit/efb910d38a96494256f36675ef0e5061097dd77d
For more information
If you have any questions or comments about this advisory:
- Open an issue in ratpack/ratpack
- Ask in our Slack channel
- Record
GHSA-mvqp-q37c-wf9j- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-74
- Updated
- 2026-11-02
OSV
7.5
An issue was discovered in Ratpack before 1.7.5. Due to a misuse of the Netty library class DefaultHttpHeaders, there is no validation that headers lack HTTP control characters. Thus, if untrusted data is used to construct HTTP headers with Ratpack, HTTP Response Splitting can occur.
- Record
CVE-2019-17513- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVGHSA-mvqp-q37c-wf9j
7.5
io.ratpack:ratpack-core vulnerable to Improper Neutralization of Special Elements in Output ('Injection')
CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')
Versions of Ratpack 0.9.1 through and including 1.7.4 are vulnerable to HTTP Response Splitting, if untrusted and unsanitized data is used to populate the headers of an HTTP response. An attacker can utilize this vulnerability to have the server issue any HTTP response they specify.
If your application uses arbitrary user input as the value of a response header it is vulnerable. If your application does not use arbitrary values as response header values, it is not vulnerable.
Previously, Ratpack did not validate response header values. Now, adding a header value that contains the header value termination characters (CRLF) produces a runtime exception. Since there is no mechanism for escaping or encoding the termination characters in a String, a runtime exception is necessary.
As potentially dangerous values now cause runtime exceptions, it is a good idea to continue to validate and sanitize any user-supplied values being used as response headers.
We would like to thank Jonathan Leitschuh for reporting this vulnerability.
Vulnerable Example
The following example server uses a query parameter value as a response header, without validating or sanitizing it.
RatpackServer startedServer = RatpackServer.start(server -> {
server.handlers(chain -> chain.all(ctx -> {
// User supplied query parameter
String header = ctx.getRequest().getQueryParams().get("header");
// User supplied data used to populate a header value.
ctx.header("the-header", header)
.render("OK!");
}));
});
Sending a request to the server with the following value for the header query param would allow the execution of arbitrary Javascript.
Content-Type: text/html
X-XSS-Protection: 0
<script>alert(document.domain)</script>
Impact
- Cross-User Defacement
- Cache Poisoning
- Cross-Site Scripting
- Page Hijacking
Patches
This vulnerability has been patched in Ratpack version 1.7.5.
Root Cause
The root cause was due to using the netty DefaultHttpHeaders object with verification disabled.
This vulnerability is now more clearly documented in the Netty documentation: https://github.com/netty/netty/pull/9646
Workarounds
The workaround for this vulnerability is to either not use arbitrary input as response header values or validate such values before being used to ensure they don't contain a carriage return and/or line feed characters.
References
- CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')
- Fix commit: https://github.com/ratpack/ratpack/commit/efb910d38a96494256f36675ef0e5061097dd77d
For more information
If you have any questions or comments about this advisory:
- Open an issue in ratpack/ratpack
- Ask in our Slack channel
- Record
GHSA-mvqp-q37c-wf9j- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-74
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
io.ratpack:ratpack-coreMaven |
before 1.7.5 | 1.7.5 |
io.ratpack:ratpack-coreMaven |
before 1.7.5, plus listed versions 0.9.00.9.10.9.100.9.110.9.12 Show 45 moreShow less0.9.130.9.140.9.150.9.160.9.170.9.180.9.190.9.20.9.30.9.40.9.50.9.60.9.70.9.80.9.91.0.01.0.0-rc-11.0.0-rc-21.0.0-rc-31.1.01.1.11.2.01.2.0-RC-11.2.0-rc-21.3.01.3.0-rc-11.3.0-rc-21.3.11.3.21.3.31.4.01.4.0-rc-11.4.0-rc-21.4.0-rc-31.4.11.4.21.4.31.4.41.4.51.4.61.5.01.5.11.5.21.5.31.5.4 |
1.7.5 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | epicosy/Ratpack-1 | 2024-05-31 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-17513 is a high vulnerability (CVSS 7.5) in Ratpack Project Ratpack, published October 18, 2019. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 2.15%, the 82nd percentile. Fixed in io.ratpack:ratpack-core 1.7.5.
References
github.com/ratpack/ratpack/commit/efb910d38a96494256f36675ef0e5061097dd77d
github.com/ratpack/ratpack/commit/c560a8d10cb8bdd7a526c1ca2e67c8f224ca23ae
ratpack.io/versions/1.7.5
github.com/ratpack/ratpack/security/advisories/GHSA-mvqp-q37c-wf9j
github.com/ratpack/ratpack/releases/tag/v1.7.5
nvd.nist.gov/vuln/detail/CVE-2019-17513
github.com/advisories/GHSA-mvqp-q37c-wf9j
github.com/ratpack/ratpack
Left out here: 11 versions. The JSON record has them.