We've recently started using Snyk to perform code analysis, however have hit the stumbling block that the first scan is reporting many (>700) XSS vulnerabilities despite having code in place to sanitise and handle this.
It looks like Snyk is unable to take into account that we are performing sanitisation in a different method that is included from a separate file, for example:
$mySuperAwesomeVar = Sanitise($_GET["NaughtyUser"]);
Looking at the Data Flow for the detection, we can see that the source of it is the afformentioned line, but it doesn't go into that Sanitise method.
Any ideas?