Cross-site Scripting in OWASP AntiSamy
Date: 2022-04
Affected: maven/org.owasp.antisamy:antisamy
Attack vector: xss
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2022-28366
CVE-2022-28367
CWE: CWE-79
CVSS: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

OWASP AntiSamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources. AntiSamy before 1.6.6 allows XSS via HTML tag smuggling on STYLE content with crafted input. The output serializer does not properly encode the supposed Cascading Style Sheets (CSS) content.


Mitigations:

Architectural layers (MAESTRO):