Skip to content

JS: add HtmlSanitizer as a sanitizer DOMBasedXss #12166

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

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Feb 13, 2023

CVE-2018-19048: TN

We don't model flow through unknown functions, so adding HtmlSanitizer as a sanitizer should't be needed.
However, if we spuriously find flow through the function (e.g. because the library ships with it's own copy of DOMPurify, where we spuriously find flow through), then we need the sanitizer.

The evaluation shows some lost results where we had spurious flow through a (good) sanitizer, and around neutral performance.

@github-actions github-actions bot added the JS label Feb 13, 2023
@erik-krogh erik-krogh marked this pull request as ready for review February 13, 2023 14:36
@erik-krogh erik-krogh requested a review from a team as a code owner February 13, 2023 14:36
@erik-krogh erik-krogh added the no-change-note-required This PR does not need a change note label Feb 13, 2023
@erik-krogh erik-krogh merged commit e3e2df3 into github:main Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants