2022-08-13 15:12:31 +05:30
---
stage: Secure
group: Dynamic Analysis
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2022-08-13 15:12:31 +05:30
---
# Content-Security-Policy analysis
## Description
2023-04-23 21:23:45 +05:30
A missing or invalid `Content-Security-Policy` (CSP) was identified on the target site. CSP can aid in
hardening a website against various client side attacks such as Cross-Site Scripting (XSS).
2022-08-13 15:12:31 +05:30
## Remediation
2023-04-23 21:23:45 +05:30
If the target site is missing a CSP, please investigate the relevant URLs for enabling CSP. Otherwise,
follow the recommendations to determine if any actions are necessary.
2022-08-13 15:12:31 +05:30
## Details
| ID | Aggregated | CWE | Type | Risk |
|:---|:--------|:--------|:--------|:--------|
| 16.8 | true | 16 | Passive | Info |
## Links
- [CWE ](https://cwe.mitre.org/data/definitions/16.html )
- [OWASP ](https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html )
- [MDN ](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP )
- [Content Security Policy Level 3 ](https://www.w3.org/TR/CSP3/ )
- [CSP Evaluator ](https://csp-evaluator.withgoogle.com/ )