CVE-2021-33562: Cross-Site Scripting in Shopizer

com.shopizer:shopizer Updated 02 Oct 2025

Summary

08/06/2021
Yes i
Moderate
4.8

CVE-2021-33562: Cross-site scripting in Shopizer. Affects com.shopizer:shopizer versions < 2.17.0. Fixed in 2.17.0. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Shopizer is an open-source e-commerce software written in Java. It provides a platform for building online stores and managing product catalogs, orders, and payments. The vulnerability identified as CVE-2021-33562 affects Shopizer versions prior to 2.17.0. This vulnerability allows remote attackers to inject arbitrary web script or HTML through the 'ref' parameter on product pages, potentially leading to cross-site scripting (XSS) attacks.

Vulnerability Detail

The vulnerability arises due to a lack of proper input validation and sanitization in the handling of the 'ref' parameter. Attackers can exploit this by crafting malicious URLs that contain script or HTML code. When a user clicks on such a URL, the injected code gets executed within the context of the vulnerable page, potentially allowing the attacker to steal sensitive information, perform actions on behalf of the user, or manipulate the page content. The impact of this vulnerability can range from session hijacking to defacement of the affected website.

How To Fix

Minimum fixed version

2.17.0

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 upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by manually validating and sanitizing the 'ref' parameter before processing it. This can be achieved by using a combination of input validation techniques, such as whitelisting allowed characters and encoding special characters. It is recommended to consult the Shopizer documentation or seek assistance from the project's community for guidance on implementing this workaround effectively.

Conclusion

The CVE-2021-33562 vulnerability in Shopizer exposes websites to potential cross-site scripting attacks. It is crucial to upgrade to Shopizer version 2.17.0 or later to mitigate this vulnerability. Implementing proper input validation and output encoding practices is essential to prevent XSS attacks. For more information and assistance, please contact DevNack.com.

See every vulnerability recorded for com.shopizer:shopizer →

Share this vulnerability

FAQ

Shopizer is an open-source e-commerce software written in Java. It provides a platform for building online stores and managing product catalogs, orders, and payments.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to various attacks, such as session hijacking, data theft, or defacement of websites.

You can use Vulert's playground at Vulert Scanner to check if your Shopizer application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the pom.xml file.

Yes, the CVSS score for this vulnerability is 4.8, indicating a moderate severity level.

For further support and detailed instructions on vulnerability remediation, you can reach out to info@devnack.com.

Related vulnerabilities

Recent vulnerabilities recorded for com.shopizer:shopizer.

How To Fix

Minimum fixed version

2.17.0

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