An attacker can inject malicious scripts into a web page by exploiting security vulnerabilities in the browser environment. Once a foothold is gained, an attacker can access additional scripts from any server, make unauthorized requests to the vulnerable server, read data in the document, and send data to other servers. These attacks have been issues since Netscape 2 in 1995. Ultimately, JavaScript and the DOM need to be replaced with more secure alternatives to prevent cross-site scripting (XSS) attacks.