CVE-2023-36236: Cross-site Scripting in Bagisto

bagisto/bagisto Updated 02 Oct 2025

Summary

17/01/2024
Yes i
Moderate
4.8

CVE-2023-36236: Cross-site Scripting in Bagisto. Affects bagisto/bagisto versions < 1.3.2. Fixed in 1.3.2. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Bagisto is an open-source e-commerce platform built on Laravel. It provides a comprehensive set of features for creating online stores. The vulnerability affects Bagisto versions 1.3.1 and earlier. Bagisto allows users to upload SVG files, which are vector graphics files commonly used for web design. However, due to insufficient input validation, an attacker can exploit this feature to execute arbitrary code on the target system.

Vulnerability Detail

The vulnerability in Bagisto arises from a lack of proper input validation when processing SVG file uploads. By crafting a malicious SVG file, an attacker can inject and execute arbitrary code on the target system. This can lead to various security risks, including cross-site scripting (XSS) attacks, data theft, and unauthorized access to sensitive information. The vulnerability has a CVSS score of 4.8, indicating a moderate severity level.

How To Fix

Minimum fixed version

1.3.2

This is the first release that contains the fix.

composer require bagisto/bagisto:1.3.2

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

Workaround

As a temporary workaround, users can disable the ability to upload SVG files in the Bagisto configuration. This can be achieved by modifying the relevant configuration file or using a configuration option provided by Bagisto. By disabling SVG file uploads, the risk of exploitation can be mitigated until the vulnerability is fixed.

Conclusion

In conclusion, Bagisto versions 1.3.1 and earlier are vulnerable to a cross-site scripting (XSS) vulnerability due to insufficient input validation when processing SVG file uploads. To mitigate the risk, users should upgrade to Bagisto version 1.3.2 or later. Alternatively, they can temporarily disable SVG file uploads until the vulnerability is fixed. 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 features for creating online stores.

The vulnerability allows an attacker to execute arbitrary code on the target system, potentially leading to cross-site scripting (XSS) attacks, data theft, and unauthorized access to sensitive information.

To fix this vulnerability, it is recommended to upgrade to Bagisto version 1.3.2 or later. This version includes improved input validation for SVG file uploads.

Yes, as a temporary workaround, users can disable the ability to upload SVG files in the Bagisto configuration.

The vulnerability has a CVSS score of 4.8, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for bagisto/bagisto.

How To Fix

Minimum fixed version

1.3.2

This is the first release that contains the fix.

composer require bagisto/bagisto:1.3.2

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