Skip to content

[Security] JS injection through attributes like onclick/onerror/etc #438

@SystemParadox

Description

@SystemParadox

With html: true remarkable strips <script> but does not strip attributes like onclick/onerror/etc, so you can do things like this:

<img src="invalid.jpg" onerror="alert('Injected!')" />

This is obviously an XSS vulnerability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions