4.3 Medium
CVSS2
Access Vector
NETWORK
Access Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
PARTIAL
Availability Impact
NONE
AV:N/AC:M/Au:N/C:N/I:P/A:N
0.003 Low
EPSS
Percentile
65.1%
When a Hash
containing user-controlled data is encoded as JSON (either through Hash#to_json
or ActiveSupport::JSON.encode
), Rails does not perform adequate escaping that matches the guarantee implied by the escape_html_entities_in_json
option (which is enabled by default). If this resulting JSON string is subsequently inserted directly into an HTML page, the page will be vulnerable to XSS attacks.
CPE | Name | Operator | Version |
---|---|---|---|
gem/activesupport | ge | 4.1.0a | |
gem/activesupport | lt | 4.1.11 | |
gem/activesupport | ge | 4.2.0a | |
gem/activesupport | lt | 4.2.2 |