CVE-2022-38901 Cross-site scripting in n/a

Medium 5.4 Published Updated

Remote attackers can inject arbitrary JavaScript or HTML via SVG file descriptions in Liferay DXP, potentially executing code in user sessions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-38901?

CVE-2022-38901 is a medium-severity cross-site scripting vulnerability in Liferay Liferay Portal, published on 19 Oct 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A Cross-site scripting (XSS) vulnerability in the Document and Media module - file upload functionality in Liferay Digital Experience Platform 7.3.10 SP3 allows remote attackers to inject arbitrary JS script or HTML into the description field of uploaded svg file.

Weakness: CWE-79

Which versions are affected by CVE-2022-38901?

It affects 2 products.

Products include Liferay Dxp, Liferay Liferay Portal.

How do I fix CVE-2022-38901?

No fix has been published for CVE-2022-38901 yet. Limit exposure of the affected software until one is available.

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-38901 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-38901 exists.

All Liferay Liferay Portal vulnerabilities

Sources

Also known as GHSA-pq9f-jx2p-2xwc.

Is CVE-2022-38901 in your software?

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

Check your SBOMs for free