Skip to content

Fragments: check definition URLs before loading them on pages without a nonce-based CSP #720

Closed

Description

@JuroOravec

Found during the review of #714 (existing behaviour, not added there). On a page whose CSP does not use nonces, markup injected into the page (for example through an html hole elsewhere in the app) can start a Vue fragment whose definition script URLs it chooses. A CSP that allows same-origin scripts would then let it load any same-origin script Citry would not have chosen.

To check: which URLs the fragment loader accepts, whether it limits them to Citry's own runtime and definition routes, and whether the browser should refuse a fragment start that no server render produced. Add the result to docs/design/trust_boundaries.md (see #712).

🤖 Generated with Claude Code

Activity

  1. added this to the 1.1.0 milestone on Nov 15, 2026
  2. added
    next-sprint
    on Nov 15, 2026
  3. added 2 commits that reference this issue on Nov 16, 2026
  4. JuroOravec commented on Nov 18, 2026

    @JuroOravec
    MemberAuthor

    Fixed in citry 1.0.1 (commit 9bf0c83). The details are in GHSA-3x88-p9rc-qjw6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions