No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Sanitizing labels, preventing XSS attacks

    Framework
    2
    2
    787
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      netnod last edited by netnod

      i noticed inside the select component the following :

      IMPORTANT
      Starting with Quasar v0.17.10+, please make sure the labels are sanitized, otherwise your app might be a target for XSS attacks.

      should we sanitize absolutely ALL labels … or only the labels for select component ? Or only the labels resulting or related to user input

      what is the best approach to do it ?.. e.g. something like

      npm install sanitize-html
      
      import sanitizeHTML from 'sanitize-html';
      Vue.prototype.$sanitize = sanitizeHTML
      

      etc…

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        It’s related to user input and for the option labels, as I understand it.

        Scott

        1 Reply Last reply Reply Quote 0
        • First post
          Last post