The Javascript method Sling.evalString() in Apache Sling Servlets Post before 2.3.22 uses the javascript 'eval' function to parse input strings, which allows for XSS attacks by passing specially crafted input strings.
https://issues.apache.org/jira/browse/SLING-7041
http://www.securityfocus.com/bid/100284
http://www.securityfocus.com/archive/1/541024/100/0/threaded