Sylius Cross Site Scripting (XSS) Vulnerability in sylius/sylius

sylius/sylius Updated 02 Oct 2025

Summary

22/04/2024
No i
Moderate
5.4

CVE-2024-29376: Duplicate Advisory: Sylius Cross Site Scripting (XSS) vulnerability. Affects sylius/sylius versions < 1.12.13. No fix is published. 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

Sylius is an open-source e-commerce platform built on top of Symfony. It provides a flexible and modular foundation for creating online stores. The sylius/sylius package is a core component of the Sylius platform, responsible for managing various aspects of the e-commerce functionality. Unfortunately, version 1.12.13 of Sylius is vulnerable to a Cross Site Scripting (XSS) attack through the "Province" field in the Address Book.

Vulnerability Detail

The Cross Site Scripting (XSS) vulnerability in Sylius 1.12.13 allows an attacker to inject malicious scripts into the "Province" field of the Address Book. This can lead to the execution of arbitrary code in the context of the user's browser, potentially compromising sensitive information or performing unauthorized actions. The vulnerability has a CVSS score of 5.4, indicating a moderate severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can sanitize and validate user input in the "Province" field to prevent the execution of malicious scripts. Implement server-side validation and filtering to remove any potentially harmful content. Here's an example in PHP:

$province = filter_var($_POST['province'], FILTER_SANITIZE_STRING);

Conclusion

In conclusion, Sylius version 1.12.13 is vulnerable to a Cross Site Scripting (XSS) attack through the "Province" field in the Address Book. To mitigate this vulnerability, it is crucial to upgrade to a patched version of Sylius and ensure that all dependencies are updated. Implementing server-side validation and filtering can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for sylius/sylius →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary code in the user's browser, potentially compromising sensitive information or performing unauthorized actions.

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

Yes, the maintainers of Sylius have released a fix for this vulnerability in a subsequent version. It is recommended to upgrade to the latest version of Sylius or a version that includes the fix.

As a temporary workaround, you can sanitize and validate user input in the "Province" field to prevent the execution of malicious scripts. Implement server-side validation and filtering to remove any potentially harmful content.

Related vulnerabilities

Recent vulnerabilities recorded for sylius/sylius.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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