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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix XSS in markdown w/ length JS filter #2471

Merged
merged 2 commits into from Apr 30, 2020

Conversation

abulte
Copy link
Contributor

@abulte abulte commented Apr 30, 2020

Putting the sanitised version from markdown-it back into an HTML node to truncate the text would remove the benefits of sanitisation. Adding a quick strip tags regex on the sanitised still seems functional and becomes secure.

Capture d'茅cran 2020-04-30 10 24 14

Capture d'茅cran 2020-04-30 10 24 21

Big up to @vinyll 馃檶

@abulte abulte requested a review from quaxsze April 30, 2020 08:32
@abulte abulte merged commit ab9a96d into opendatateam:master Apr 30, 2020
@abulte abulte deleted the fix-activity-xss branch April 30, 2020 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants