-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security] Vulnerable to XSS attacks. #56
Comments
@OmkarK45 You can try to setting <MDEditor
value="Hello Markdown!"
previewOptions={{
}}
/>
|
Thank you for replying. I will try this ✌️ |
Update : Your answer fixed the issue. Thanks again. I'm closing the issue now. |
[image: image.png]
<MDEditor
height={400}
value={value}
onChange={setValue}
previewOptions={{
transformLinkUri: null,
skipHtml: true,
}}
/>
…On Fri, Oct 30, 2020 at 2:29 AM Antwan Sherif ***@***.***> wrote:
@OmkarK45 <https://github.com/OmkarK45> Can you share with me a code
snippet of the settings you used?
Because adding "" to the editor still produces the alert!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK3SOWXIUUQAOYCYTRQGMK3SNHJSBANCNFSM4TCAYWRQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue : The textarea doesn't do any validation or sanitize any input to it.
What is happening : This makes editor execute inline html code.
How to reproduce ? : Simply type
<img src onerror="alert('hey!')"/>
in input boxThe text was updated successfully, but these errors were encountered: