Skip to content

inbox-bubble: assistant-name cap slices UTF-16 (lone surrogate) and does not isolate bidi controls #17

Description

@cverorg

Pre-existing, found by the review of #12 (R2/R3, P3). (1) The 40-char cap is a UTF-16 slice: data-assistant-name = 'a' + '😀'.repeat(20) yields a lone high surrogate (isWellFormed() false); use Array.from / Intl.Segmenter grapheme counting. (2) A U+202E RTL override in the name reaches the status text node unisolated; wrap the name in or strip bidi controls (U+202A–U+202E, U+2066–U+2069). Both are attacker-controlled only by the site owner, so low severity.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions