CVE-2022-42119: Liferay Commerce Module XSS Vulnerability

Summary

15/11/2022
Yes i
Moderate
5.4

CVE-2022-42119: Liferay Portal and Liferay DXP Vulnerable to XSS via the Commerce Module. Affects com.liferay.commerce:com.liferay.commerce.catalog.web versions < 4.0.8. Fixed in 4.0.8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Liferay Commerce module is a part of the Liferay platform, which provides a comprehensive suite for building and managing online commerce applications. It offers features such as product catalog management, shopping cart functionality, and customer account management. However, certain versions of this module are vulnerable to Cross Site Scripting (XSS) attacks, which can compromise the security of applications built on the Liferay platform.

Vulnerability Detail

The vulnerability arises from improper input validation in the Liferay Commerce module, allowing attackers to inject malicious scripts into web pages viewed by other users. This can lead to unauthorized actions being performed on behalf of users, data theft, or session hijacking. The affected versions include Liferay Commerce before 4.0.8 and Liferay DXP 7.3 before update 8. The severity of this vulnerability is rated as moderate, with a CVSS score of 5.4.

How To Fix

Minimum fixed version

4.0.8

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider implementing input validation and sanitization on user inputs to mitigate the risk of XSS attacks. Additionally, restrict access to the affected functionalities until the update can be applied.

Conclusion

The Liferay Commerce module has a vulnerability that allows for Cross Site Scripting attacks, affecting multiple versions of the software. It is crucial to update to the latest patched versions to ensure the security of applications built on this platform. Implementing workarounds can provide temporary relief until the updates are applied.

See every vulnerability recorded for com.liferay.commerce:com.liferay.commerce.catalog.web →

Share this vulnerability

FAQ

XSS is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users, potentially leading to data theft or unauthorized actions.

The vulnerability affects Liferay Commerce before version 4.0.8 and Liferay DXP 7.3 before update 8.

You can use Vulert, which monitors and alerts for open-source vulnerabilities using just your pom.xml file. Visit the Vulert playground at Vulert Scanner to check your application without any signup.

Implement input validation and sanitization on user inputs as a temporary measure to reduce the risk of XSS attacks.

The CVSS score of this vulnerability is 5.4, indicating a moderate level of severity.

How To Fix

Minimum fixed version

4.0.8

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback