Content Security Policy is supposed to be the safety net that stops an HTML injection from turning into XSS. Usually it works. But sometimes it doesn't, because the policy allows-lists a domain that h
Briefing
Written from the coverage below · deepseek-v4.1-flash
Research describes stealing credentials by abusing Content Security Policy allow-lists: when a policy permits a host that serves JSONP endpoints or user-controlled files, an HTML injection can load attacker-chosen script and exfiltrate tokens. The technique bypasses CSP's intended role as an XSS mitigation.
Why it mattersCSP host allow-lists that include JSONP or upload endpoints give injection flaws a path to script execution, undermining a common XSS defense.
ActionReview CSP allow-list entries; remove hosts that serve JSONP callbacks or user-uploaded content, and prefer nonces or hashes over host allow-lists.
Coverage
1 article