CVE-2018-11627: Sinatra - Stored XSS
- Cve: CVE-2018-11627
- Name: Sinatra - Stored XSS
- Description: Sinatra before 2.0.2 has XSS via the 400 Bad Request page that occurs upon a params parser exception.
- Impact: Attackers can execute malicious scripts in victim browsers, leading to session hijacking, defacement, or redirection.
- Remediation: Update to Sinatra version 2.0.2 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to trigger a params parser exception with malicious input.
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.02118
- Epss percentile: 0.82333
- Assignee: [email protected]
- Published at: 2018-05-31T19:29:00Z
- Age in days: 3099
- Modified at: 2026-06-17T01:36:16Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-11627
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/sinatra/sinatra/issues/1428 | nvd | 2018-05-31 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/sinatra/sinatra/commit/12786867d6faaceaec62c7c2cb5b0e2dc074d71a | Patch, Third Party Advisory |
| https://github.com/sinatra/sinatra/issues/1428 | Exploit, Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2019:0212 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2019:0315 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| sinatrarb:sinatra | < 2.0.2 | no | nvd | /v1/products/sinatrarb/sinatra |
| redhat:cloudforms | = 4.7, = 4.6 | no | nvd | /v1/products/redhat/cloudforms |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| sinatra/sinatra | commit, fix, issues, package | yes | /v1/repositories/sinatra/sinatra |
Index
- Repositories: 1
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2018-05-31
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts