Advisory

GHSA-8j9v-h2vp-2hhv

Also known as: CVE-2020-26293

Summary

XSS in HtmlSanitizer

Details

Impact

If you have explicitly allowed the <style> tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the <style> tag so there is no risk if you have not explicitly allowed the <style> tag.

Patches

The problem has been fixed in version 5.0.372.

Workarounds

Remove the <style> tag from the set of allowed tags.

For more information

If you have any questions or comments about this advisory open an issue in https://github.com/mganss/HtmlSanitizer

Credits

This issue was discovered by Michal Bentkowski of Securitum.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2021-01-04 18:22 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

HtmlSanitizer

NuGet · All systems

Affected

  • introduced 0, fixed 5.0.372 (ecosystem)

Fixed versions

5.0.372

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences