Lab: DOM XSS in AngularJS expression with angle brackets and double quotes HTML-encoded
Summary: This PortSwigger lab contains a DOM-based cross-site scripting vulnerability in an AngularJS expression within the search functionality. AngularJS scans HTML nodes carrying the ng-app directive, and once a directive is present, JavaScript expressions inside double curly braces execute - a technique that works even when angle brackets are encoded.
Why it matters: Encoding angle brackets is a common defense against XSS, but AngularJS's ng-app directive turns double curly braces into an execution path that bypasses it - so any application still running AngularJS in its front end may carry this exposure in its search or input handling.
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