Checkmarx is flagging these lines as Reflected XSS,Lately I have been doing a lot of research on this but couldn't solve this one can someone point me as to why these are major security threats?
public atest(){
pageParams = ApexPages.currentPage().getParameters();
arId=EncodingUtil.urlDecode(pageParams.get(Aid),ENCODING_SCHEME);