A missing or weak Content-Security-Policy

What was built

The document is served with no Content-Security-Policy, or the policy skips connect-src and script-src and has no default-src that covers them. A report-only policy does not count as enforced. script-src may also allow unsafe-inline or unsafe-eval.

Any script already on the page, including a tag container, can open a connection or run added code. The policy is not there to limit that.

How to tell

The document response has no enforced Content-Security-Policy header and no CSP meta tag. Or the policy does not declare connect-src or default-src. Or it does not declare script-src or default-src. Or script-src allows unsafe-inline, unsafe-eval, or any https host.

Why it matters

connect-src acts as the browser’s outbound choke point. Without it, any script (including a compromised GTM tag) can quietly open network connections and exfiltrate harvested passwords or credit cards to an attacker’s drop server.

Missing script-src, or relying on unsafe-inline without cryptographic nonces, removes the browser’s execution containment. It allows attackers to exploit DOM XSS vulnerabilities to inject malicious code or load unapproved stage-two payloads from rogue domains.