CVE-2021-33348 Cross-site scripting in jfinal

Medium 6.1 Published Updated

Attackers can inject malicious scripts via the Controller set method in JFinal, potentially executing code in user browsers.

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-2021-33348?

CVE-2021-33348 is a medium-severity cross-site scripting vulnerability in n/a, published on 24 Jun 2021. 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

An issue was discovered in JFinal framework v4.9.10 and below. The "set" method of the "Controller" class of jfinal framework is not strictly filtered, which will lead to XSS vulnerabilities in some cases.

Weakness: CWE-79

Which versions are affected by CVE-2021-33348?

2 open source packages ship an affected version, including com.jfinal:jfinal. It affects 1 product.

PackageAffectedFixed in
com.jfinal:jfinal MavenAll versions4.9.11
com.jfinal:jfinal MavenAll versions4.9.11

Products include Jfinal Jfinal.

How do I fix CVE-2021-33348?

Upgrade com.jfinal:jfinal to 4.9.11 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-2021-33348 being exploited?

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

Sources

Also known as GHSA-2c25-xfpq-8w9r.

Is CVE-2021-33348 in your software?

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

Check your SBOMs for free