Skip to content
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

Checkboxradio: Don't re-evaluate text labels as HTML #2102

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

mgol
Copy link
Member

@mgol mgol commented Jul 14, 2022

If you generate a Checkboxradio from a checkbox/radio with a label that
contains encoded HTML, e.g. <em>test</em> this will work fine
at first. If, however a refresh is triggered on that instance (explicitly or
e.g. by turning it into a Controlgroup), the previously escaped HTML will
now be evaluated.

If the label was created based on some user input, this could lead to
unexpected code execution even though the initial output was escaped.

Fixes gh-2101

If you generate a Checkboxradio from a checkbox/radio with a label that
contains encoded HTML, e.g. `<em>test</em>` this will work fine
at first. If, however a refresh is triggered on that instance (explicitly or
e.g. by turning it into a `Controlgroup`), the previously escaped HTML will
now be evaluated.

If the label was created based on some user input, this could lead to
unexpected code execution even though the initial output was escaped.

Fixes jquerygh-2101
@mgol mgol added this to the 1.13.2 milestone Jul 14, 2022
@mgol mgol self-assigned this Jul 14, 2022
@mgol
Copy link
Member Author

mgol commented Jul 14, 2022

This was approved by @fnagel outside of the context of this PR, hence I'll merge it without waiting for an official review here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant