CVE-2022-28367 Cross-site Scripting in OWASP AntiSamy

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
org.owasp.antisamy:antisamy MavenAll versions1.6.6
org.owasp.antisamy:antisamy MavenAll versions1.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.

Sources

Also known as DEBIAN-CVE-2022-28367, GHSA-3pqg-4rqg-pg9g, UBUNTU-CVE-2022-28367.

Is CVE-2022-28367 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free