Skip to content

security_csp: also report style attributes and inline scripts in srcdoc #773

Open

Description

@JuroOravec

security_csp reports <style> elements and on* attributes that a nonce-based policy would block, but not:

  • style attributes, which a policy without 'unsafe-inline' for styles also blocks (vue/csp.md already documents this), and
  • an inline script inside an iframe srcdoc document.

Proposal: report both (crates/citry_html_transform, output_policy.rs). The Vue-template side of the same check is #498.

Versioning: security_csp is opt-in. In "strict" mode, pages that pass today can be refused, so the changelog must say so. Needs a citry-core release.

🤖 Generated with Claude Code

Activity

  1. added this to the 1.1.0 milestone on Nov 18, 2026
  2. added
    next-sprint
    on Nov 18, 2026
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