{"schema":"ursy-truth-spine-proof-v1","record_id":"I-0115","record_url":"https://ursy.com/truth-spine/I-0115/","record_json":"https://ursy.com/truth-spine/I-0115.json","problem":{"slug":"csp-weak","title":"The Content-Security-Policy does not stop injected scripts","summary":"A CSP is sent, but it allows inline scripts, eval or any host, or only reports, so it would not block an attack.","category":"Security and HTTPS","priority":"low","page":"https://ursy.com/issues/csp-weak/","found_by_tools":["security-headers-checker","http-header-checker"]},"proof_state":"proved (source quoted)","what_this_proves":"The problem is that the Content-Security-Policy does not stop injected scripts. The web.dev article on strict CSP says an allowlist CSP is probably not effective, adding \"They require a lot of customization and can be bypassed by attackers.\" Those words back the problem: a loose policy that allows hosts or inline scripts can be got round, so it would not block an attack.","boxed_words":["They require a lot of customization and can be bypassed by attackers."],"source":{"owner":"web.dev","title":"Mitigate cross-site scripting (XSS) with a strict Content Security Policy","url":"https://web.dev/articles/strict-csp","read_on":"2026-12-01","saved_copy_sha256":"ad843508f923a890f8c6a5b1dbdee5aee3b93da31d1dcd3ab912fa1ce1c07561","kind":"official documentation page"},"picture":{"file":"www-ursy-com-truth-spine-proof-csp-weak-i-0115.webp","url":"https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/www-ursy-com-truth-spine-proof-csp-weak-i-0115.webp","status":"made on the PC; not published yet (publishing waits for the owner's word)","width":1280,"height":1192,"format":"image/webp"},"witnesses":{"source":"https://web.dev/articles/strict-csp","saved_copy":"URSY.com saved copy, sha256 ad843508f923a890f8c6a5b1dbdee5aee3b93da31d1dcd3ab912fa1ce1c07561 (kept on our side)","record":"https://ursy.com/truth-spine/I-0115/","archive_search":"https://web.archive.org/web/2026*/https://web.dev/articles/strict-csp","archive_note":"a search for public archive copies of the source page; not a copy saved by URSY.com"},"made_by":"URSY.com - www.ursy.com","made_on":"2026-12-01","licence_of_this_picture":"Source page © web.dev, quoted as a short passage with a link to the source. Red outline, address strip and Truth Spine label © 2026 URSY.com.","follow":{"record":"https://ursy.com/truth-spine/I-0115/","record_json":"https://ursy.com/truth-spine/I-0115.json","problem_page":"https://ursy.com/issues/csp-weak/","problem_card":"https://ursy.com/issues/csp-weak/index.json","ask_nicola":"https://ursy.com/wp-json/ursy/v1/ask","all_facts":"https://ursy.com/truth-spine/","source":"https://web.dev/articles/strict-csp","archive_search":"https://web.archive.org/web/2026*/https://web.dev/articles/strict-csp"}}
