Overview
CSP Evaluator is a free web tool from Google for checking whether a Content Security Policy actually protects a site against cross-site scripting. You paste a policy, choose CSP version 1, 2 or 3, and it lists findings by severity, pointing out subtle bypasses that make a policy weaker than it looks. Sample unsafe and safe policies are included to try.
Its checks are based on Google research into CSP deployments. It flags things like unsafe-inline and unsafe-eval in script directives, wildcards and plain http: or data: sources, missing object-src, script-src or base-uri directives, allowlisted hosts known to serve JSONP or Angular bypasses, short nonces, deprecated directives and missing reporting.
It is aimed at web developers and security reviewers. The core evaluator is an open-source Apache-2.0 library, also published on npm, and there is a Chrome extension version. Google provides it as is, without guarantees.
Categories
Features
- Analyses a pasted Content Security Policy
- Choose CSP version 1, 2 or 3 for the evaluation
- Findings graded from high severity down to informational
- Detects unsafe-inline, unsafe-eval, wildcards and plain URL schemes
- Flags missing object-src, script-src and base-uri directives
- Known JSONP and Angular allowlist bypass hosts
- Checks nonce length, deprecated directives and reporting setup
- Open-source library on npm and a Chrome extension
Privacy
See the official privacy policy. The tool page links only to Google's general privacy policy and terms.
Pros & Cons
Pros
- Catches real-world bypasses that a quick read of a policy misses
- Free, with no sign-up
- Open-source checks you can run in your own tooling
Cons
- Focuses on XSS protection, not every CSP directive or header
- Explanations assume some familiarity with CSP
- Provided without guarantees, so it is a review aid rather than an audit
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Security Headers · SecurityHeaders
Scans a site's HTTP security headers and grades the result.
Free No Signup Web -
Security Headers · KeyCDN Tools
Checks a URL's HTTP response headers.
Free No Signup Web -
Security Headers · Report URI
Collects and analyzes CSP and security header violation reports.
Freemium Web