The primary impact of XSS on epidemiological research is the potential for data breaches. If an attacker gains access to sensitive data, it could result in privacy violations, loss of public trust, and even legal repercussions. Additionally, manipulated data could lead to incorrect disease modeling and flawed research conclusions.