CVE-2024-27499: Bagist Cross-site Scripting vulnerability

bagisto/bagisto Updated 02 Oct 2025

Summary

01/03/2024
Yes i
Moderate
6.5

CVE-2024-27499: Bagist Cross-site Scripting vulnerability. Affects bagisto/bagisto versions < 2.1.0. Fixed in 2.1.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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Bagisto is an open-source e-commerce platform built on Laravel. It provides a comprehensive set of functionalities for creating online stores. The package 'bagisto/bagisto' is a core component of Bagisto, responsible for managing product reviews. It allows users to upload PNG files as part of their reviews. However, a vulnerability in this functionality exposes Bagisto to cross-site scripting (XSS) attacks.

Vulnerability Detail

The vulnerability arises from a lack of proper input sanitization and validation when processing PNG file uploads in the product review option. An attacker can exploit this by uploading a malicious PNG file containing embedded JavaScript code. When the review is viewed by other users, the JavaScript code gets executed in their browsers, leading to potential unauthorized actions, data theft, or further exploitation. The impact of this vulnerability is considered moderate.

How To Fix

Minimum fixed version

2.1.0

This is the first release that contains the fix.

composer require bagisto/bagisto:2.1.0

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

Workaround

There is no known workaround for this vulnerability. It is crucial to apply the provided fix by upgrading the 'bagisto/bagisto' package to a version that includes the patch.

Conclusion

Bagisto is vulnerable to a cross-site scripting (XSS) attack due to a lack of input sanitization and validation when processing PNG file uploads in the product review option. To mitigate this vulnerability, it is crucial to upgrade the 'bagisto/bagisto' package to version 2.1.0 or a later release that includes the fix. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for bagisto/bagisto →

Share this vulnerability

FAQ

Bagisto is an open-source e-commerce platform built on Laravel. It provides a comprehensive set of functionalities for creating online stores.

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 unauthorized actions, data theft, or further exploitation.

The vulnerability in Bagisto allows attackers to execute arbitrary JavaScript code in the browsers of users who view a product review containing a malicious PNG file. This can result in unauthorized actions, data theft, or further exploitation.

Yes, the Bagisto development team has released a patch in version 2.1.0 of the 'bagisto/bagisto' package to address this vulnerability.

To protect your Bagisto installation, it is recommended to upgrade the 'bagisto/bagisto' package to version 2.1.0 or any subsequent releases that include the fix for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for bagisto/bagisto.

How To Fix

Minimum fixed version

2.1.0

This is the first release that contains the fix.

composer require bagisto/bagisto:2.1.0

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