Skip to content

Don't use v-html for user-generated content #90

@reinierl

Description

@reinierl

When I: put <img src="" onerror="console.log('You have been pwned');" /> in my bio

Then I expect: to either literally see that in my bio when viewing the map, or not see the scriptkiddy HTML injection at all

But actually: "You have been pwned" gets output to the console.

This is a case of XSS.

It's already been fixed with 744cdff, but for the record.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsecurity

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions