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

[bugfix] Use CSSOM for style manipulations #601

Merged
merged 3 commits into from
Aug 2, 2018

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Jul 31, 2018

Currently we assign the style property directly when manipulating CSS.
This is an XSS vector, and prevents security conscious users from using
a CSP that prevents this type of manipulation. We can avoid it by
assigning style properties directly on the element.style object, which
filters the text safely (as per CSSOM).

fixes #566

pzuraq added 3 commits July 31, 2018 13:51
Currently we assign the style property directly when manipulating CSS.
This is an XSS vector, and prevents security conscious users from using
a CSP that prevents this type of manipulation. We can avoid it by
assigning style properties directly on the `element.style` object, which
filters the text safely (as per CSSOM).

fixes #566
@pzuraq pzuraq merged commit aeceb6c into master Aug 2, 2018
@pzuraq pzuraq deleted the pzuraq/bugfix/use-cssom-for-style-manipulations branch August 2, 2018 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Use CSSOM for style manipulations
1 participant