Skip to content

Refuse nonce as a c-bind spread key #770

Open

Description

@JuroOravec

Refuse nonce as a key in a c-bind spread. A spread lets the values passed in choose attribute names, and the page's CSP nonce is something only Citry (or the template author, writing nonce= directly) should set. Citry already refuses on* names in a spread for the same reason.

No effect in a browser has been found: Citry's browser code reads the nonce from the running script, and security_csp="strict" ignores nonces written in templates. So this is tightening only.

Versioning: it refuses a key 1.0.x accepts. A nonce= attribute written directly in the template stays allowed. The changelog must say what is refused.

🤖 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