CVE-2022-28367 Cross-site Scripting in OWASP AntiSamy
Attackers can execute arbitrary scripts via HTML tag smuggling in STYLE content due to improper encoding in the OWASP AntiSamy library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-28367?
CVE-2022-28367 is a medium-severity cross-site scripting vulnerability in n/a, published on 21 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
OWASP 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.
Weakness: CWE-79
Which versions are affected by CVE-2022-28367?
2 open source packages ship an affected version, including org.owasp.antisamy:antisamy. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.owasp.antisamy:antisamy Maven | All versions | 1.6.6 |
org.owasp.antisamy:antisamy Maven | All versions | 1.6.6 |
Products include Antisamy Project Antisamy.
How do I fix CVE-2022-28367?
Upgrade org.owasp.antisamy:antisamy to 1.6.6 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-28367 being exploited?
There is no known exploitation of CVE-2022-28367 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2022-28367, GHSA-3pqg-4rqg-pg9g, UBUNTU-CVE-2022-28367.