PT-2021-11234 · Unknown · Sanitize-Html
Michał Bentkowski
·
Published
2021-01-04
·
Updated
2021-01-07
·
CVE-2020-26293
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions:
HtmlSanitizer versions prior to 5.0.372
Description:
The issue allows for a possible XSS bypass if the
<style> tag is allowed. An attacker could craft HTML that includes script after passing through the sanitizer if the <style> tag has been explicitly allowed. The default settings disallow the <style> tag, posing no risk if it has not been explicitly allowed.Recommendations:
For versions prior to 5.0.372, update to version 5.0.372 to resolve the issue.
As a temporary workaround, consider removing the
<style> tag from the set of allowed tags until a patch is applied.Fix
Special Elements Injection
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Sanitize-Html