Skip to content

Desktop webview has CSP off while global Tauri IPC is exposed #171

Closed

Description

@omglazrgunpewpew

Noticed the desktop Tauri config currently has both:

"withGlobalTauri": true

and:

"csp": null

If any markup injection lands in the webview, there’s not much backup protection before script can reach the global Tauri API.

Eeespecially risky with stored or reflected frontend bugs, since the app has Tauri commands for setup/runtime/download/save flows.

Would it make sense to either:

  • disable withGlobalTauri and use scoped imports instead
  • add a stricter CSP for the desktop webview

Flagging separately from the folder-name XSS since even after that specific bug is fixed, this still seems like a useful hardening step.

Activity

  1. thcp commented on Jun 2, 2026

    @thcp
    Collaborator

    Hi @omglazrgunpewpew , thanks for the report, this will be addressed on the next release

  2. self-assigned this
    on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions