CVE-2022-29577 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-29577?

CVE-2022-29577 is a medium-severity cross-site scripting vulnerability in Oracle Enterprise Manager Base Platform, 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.7 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. NOTE: this issue exists because of an incomplete fix for CVE-2022-28367.

Weakness: CWE-79

Which versions are affected by CVE-2022-29577?

2 open source packages ship an affected version, including org.owasp.antisamy:antisamy. It affects 3 products.

PackageAffectedFixed in
org.owasp.antisamy:antisamy MavenAll versions1.6.7
org.owasp.antisamy:antisamy MavenAll versions1.6.7

Products include Antisamy Project Antisamy, Oracle Enterprise Manager Base Platform, Oracle Weblogic Server.

How do I fix CVE-2022-29577?

Upgrade org.owasp.antisamy:antisamy to 1.6.7 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-29577 being exploited?

There is no known exploitation of CVE-2022-29577 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Oracle Enterprise Manager Base Platform vulnerabilities

Sources

Also known as GHSA-vp37-2f9p-3vr3, UBUNTU-CVE-2022-29577.

Is CVE-2022-29577 in your software?

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

Check your SBOMs for free