DOM-based Java Script injection
Summary: DOM-based JavaScript-injection vulnerabilities arise when a script executes attacker-controllable data as JavaScript, letting an attacker construct a URL that runs arbitrary JavaScript in a victim's browser session if that user visits it. PortSwigger says users can be induced to visit the malicious URL through delivery vectors similar to those used for reflected cross-site scripting, and the injected code can steal session tokens or login credentials, perform arbitrary actions on the victim's behalf, or log keystrokes.
Why it matters: The payload runs inside the victim's own browser session, so the stolen session token or credentials are already authenticated - and the delivery method is the same link-luring that reflected XSS has relied on for years.
Read the original at PortSwigger Research ↗
- Topics
- Vulnerabilities & Patching
- Related
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026