title: Possible XSS vulnerability in ActionView
description: In ActionView before versions 6.0.2.2 and 5.2.4.2, there is a possible XSS vulnerability in ActionView's JavaScript literal escape helpers. Views that use the `j` or `escape_javascript` methods may be susceptible to XSS attacks. The issue is fixed in versions 6.0.2.2 and 5.2.4.2.
problem types: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
affected:
{
product: actionview
vendor: rails
versions:
status: affected, version: < 5.2.4.2
status: affected, version: >= 6.0.0, < 6.0.2.2
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 4
baseSeverity: MEDIUM
confidentialityImpact: LOW
integrityImpact: LOW
privilegesRequired: HIGH
scope: CHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N
version: 3.1
]