instance-oom/ngx-markdown-editor

XSS vulnerability

cosad3s opened this issue · 3 comments

Hello,

I have identified an XSS vulnerability on the last version of ngx-markdown-editor (3.3.2 - Last commit 783fe2d).

Payload :
image

Previewed as:
image

The XSS:
image

You can set this markedjsOpt.sanitize to true. That's can prevent this.

The option is already set to true.
It blocks other payloads, but not this one.
I used the preconfigured "demo" subfolder from this repository.

Please using 3.3.3. This version has been fixed this issue.