Addressable URI#request_uri returns control characters unencoded with possible HTTP request splitting
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| sporkmongeraddressable | — | Not listed |
| rubygemsaddressable |
≥ 2.1.2, < 2.10.0→ 2.10.0 |
2.10.0 |
Original description The description as published by the source.
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.1.2 until 2.10.0, Addressable::URI#request_uri returns stored control characters and spaces without encoding them. An HTTP client that writes this value directly into an HTTP request line can allow an untrusted URI to terminate the line early and inject headers. With keep-alive, and depending on client and server behavior, the injected text could potentially begin an additional request on the same connection. This issue is fixed in version 2.10.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com