Abstract: The risk of cyberattacks increases along with the quantity of e-commerce websites. One of the frequent attacks that target and threaten said websites is cross-site scripting (XSS) attack.