CVE-2018-11627
MEDIUM 6.1CVSS 3.0Sinatra Cross-site Scripting vulnerability
Sinatra before 2.0.2 has XSS via the 400 Bad Request page that occurs upon a params parser exception.
- Published
- 31 May 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-mq35-wqvf-r23c
- Sources
- NVDJSONOSV GHSA-mq35-wqvf-r23cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sinatrarb | sinatracpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:* |
< 2.0.2 | 2.0.2 |
| NVD | redhat | cloudformscpe:2.3:a:redhat:cloudforms:4.6:*:*:*:*:*:*:* |
= 4.6 | |
| NVD | redhat | cloudformscpe:2.3:a:redhat:cloudforms:4.7:*:*:*:*:*:*:* |
= 4.7 | |
| OSV | RubyGems | sinatra | >= 2.0.0, < 2.0.2 | 2.0.2 |
References
- https://access.redhat.com/errata/RHSA-2019:0212 · Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2019:0315 · Third Party Advisory, WEB
- https://github.com/sinatra/sinatra/commit/12786867d6faaceaec62c7c2cb5b0e2dc074d71a · Patch, Third Party Advisory, WEB
- https://github.com/sinatra/sinatra/issues/1428 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-11627 · ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2018-11627.yml · WEB
- https://github.com/sinatra/sinatra · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 May 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Jun 2018)