-
Type: Bug
-
Status: In Progress
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 3.0.x, 3.1.x
-
Tags:
-
Sprint:UI - 2024-10, UI - 2024-12
-
Story Points:5
- Remove usage of 'unsafe-eval'.
- It is easily misused and can lead to various XSS vulnerabilities.
Current CSP
<header name="Content-Security-Policy">img-src data: blob: *; default-src blob: *; script-src 'unsafe-inline' 'unsafe-eval' data: *; style-src 'unsafe-inline' *; font-src data: *</header>
AC
- CSP policy must keep compatibility with existing applications
- To be tested with default UI
- To be tested with a customized UI configured in Nuxeo Studio Designer
- Specifically check for the import mechanism for which we are using a polyfill to keep compatibility
- is related to
-
ELEMENTS-1682 Ensure JS arrow function used in nuxeo-filter works when expressions eval is disabled
- Resolved