When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
Hi @RSharma055327 (Community Member) ,
Veracode Static Analysis reports a flaw of CWE 80 Basic XSS when we can see dynamic data going into the jQuery function, in your example this would likely be "$(response.Results)". It appears though, from the rest of you example that you're not intending this to be HTML but instead this is an array with objects?
In this case we'd recommend replacing that with Array.forEach ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach ), in your example:
response.Results.forEach(function (element) {
if (AFIS.fundName !== 'AFIS Returns') {
if (element.language.includes(missingName)) {
element.language = element.language.replace(missingName, AFIS.fundName);
}
}
});
Thank you,
Boy Baukema