Cross-Site Scripting (DOM-Based) occurs when malicious scripts are executed in a user’s browser as a result of manipulating the Document Object Model (DOM) directly. Unlike traditional XSS, which relies on server-side code to inject scripts, DOM-based XSS attacks occur entirely on the client side. Attackers exploit vulnerabilities in client-side scripts to alter the DOM, executing unintended code within the user’s browser. This can lead to data theft, session hijacking, and manipulation of web page content, undermining user trust and security.