CVE-2018-11627Sinatrarb Sinatra
Medium 6.1 No auth needed
Follow: this CVE · Sinatrarb · Sinatrarb Sinatra We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.0
- 6.1
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 83
- Auth required
- No
- Published
- May 31, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
Sinatra before 2.0.2 has XSS via the 400 Bad Request page that occurs upon a params parser exception.
What to do
- Apply the vendor's security update for Sinatra.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | sinatra |
≥ 2.0.0 < 2.0.2 |
2.0.2 |
gem "sinatra", ">= 2.0.2" |
Per OSV / GitHub Advisories (GHSA-mq35-wqvf-r23c). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| sinatrarb | sinatra | < 2.0.2 |
| redhat | cloudforms | 4.6 |
| redhat | cloudforms | 4.7 |
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory