We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Chrome v102
https://jsfiddle.net/szLp8h4n
How to reproduce the bug?
<a href="#"onclick='alert(123)'>check</a>
What is the expected behavior? Class name should be escaped
What is the current behavior? javascript run in class name
Need add escape function to template https://github.com/artf/grapesjs/blob/dev/src/selector_manager/view/ClassTagView.ts#L13
The text was updated successfully, but these errors were encountered:
Also running into this XSS bug. For example adding "><img src=x onerror=alert('XSS')> to the classes of a component will cause it to pop up as well.
"><img src=x onerror=alert('XSS')>
Sorry, something went wrong.
Thanks for the report, will be fixed in the next release.
Thanks a lot!
13e85d1
No branches or pull requests
GrapesJS version
What browser are you using?
Chrome v102
Reproducible demo link
https://jsfiddle.net/szLp8h4n
Describe the bug
How to reproduce the bug?
<a href="#"onclick='alert(123)'>check</a>
What is the expected behavior?
Class name should be escaped
What is the current behavior?
javascript run in class name
Need add escape function to template https://github.com/artf/grapesjs/blob/dev/src/selector_manager/view/ClassTagView.ts#L13
Code of Conduct
The text was updated successfully, but these errors were encountered: