Skip to content

CSP is disabled ("csp": null) #17

@codehakase

Description

@codehakase

Description

In src-tauri/tauri.conf.json:51, the Content Security Policy is explicitly set to null:

"security": {
  "csp": null,
  ...
}

This disables all CSP protections, increasing the attack surface for XSS if any user-controlled content is rendered (e.g., filenames, paths displayed in the UI).

Suggested fix

Configure a reasonable CSP that allows the app's own assets, inline styles (for Tailwind), and data: URIs (for base64 image previews), while blocking everything else. Example starting point:

default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions