CVE-2021-38264 Liferay Portal vulnerable to cross-site scripting (XSS) via the keywords parameter

Medium 6.1 Published Updated

Remote attackers can inject arbitrary web script or HTML into the management toolbar search via the keywords parameter in Liferay Portal.

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-38264?

CVE-2021-38264 is a medium-severity cross-site scripting vulnerability in Liferay Liferay Portal, published on 2 Mar 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

Cross-site scripting (XSS) vulnerability in the Frontend Taglib module in Liferay Portal 7.4.0 and 7.4.1 allows remote attackers to inject arbitrary web script or HTML into the management toolbar search via the `keywords` parameter. This issue is caused by an incomplete fix in CVE-2021-35463.

Weakness: CWE-79

Which versions are affected by CVE-2021-38264?

2 open source packages ship an affected version, including com.liferay:com.liferay.frontend.taglib.clay. It affects 1 product.

PackageAffectedFixed in
com.liferay:com.liferay.frontend.taglib.clay MavenAll versions7.1.15
com.liferay:com.liferay.frontend.taglib.clay MavenAll versions7.1.15

Products include Liferay Liferay Portal.

How do I fix CVE-2021-38264?

Upgrade com.liferay:com.liferay.frontend.taglib.clay to 7.1.15 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-38264 being exploited?

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

All Liferay Liferay Portal vulnerabilities

Sources

Also known as GHSA-9536-m86r-q297.

Is CVE-2021-38264 in your software?

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

Check your SBOMs for free