CVE-2017-16833: Gemirro Stored XSS in Gemspec "homepage" value
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5516%
CWE
Published
11/29/2017
Updated
8/29/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
gemirro | rubygems | < 0.16.0 | 0.16.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key points:
- The helpers#escape method (in server.rb) performed HTML entity encoding but didn't validate/escape URL schemes. This allowed 'javascript:' URLs to persist.
- The gem.erb template directly injected spec.homepage into href attributes after HTML-escaping, which is insufficient for URL context XSS prevention. The patch introduced URI parsing/escaping via a new homepage helper method, addressing both the lack of URL scheme validation and context-aware escaping.