Skip to content
Heist/ feed
Back to feed
Medium

Basic Cross-site Scripting and Unrestricted Upload of File with Dangerous Type in Sylius

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-24749
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 17:06 UTC · Revision 1

Source evidence

Basic Cross-site Scripting and Unrestricted Upload of File with Dangerous Type in Sylius

core-osv · Original source

Published 14 Mar 2022, 21:45 UTC

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.

osv:CVE-2022-24749
Complete source record
{
  "id": "226dbfc2898f958482ecb909e1e383f0e3a3a174efe8dc5234cafeab95be8793",
  "url": "https://osv.dev/vulnerability/CVE-2022-24749",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Basic Cross-site Scripting and Unrestricted Upload of File with Dangerous Type in Sylius",
    "summary": "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.",
    "evidence": "osv:CVE-2022-24749",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-24749",
      "aliases": [
        "CVE-2022-24749",
        "GHSA-4qrp-27r3-66fj"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sylius/sylius",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "d7b8773600e69ccbcd6d498a77b98241c0049978"
                },
                {
                  "introduced": "a367bc010cbee9fdf491dc76397198231f14ab63"
                },
                {
                  "fixed": "a23522172c3721ce778e6a48684396653d9a8358"
                },
                {
                  "introduced": "d8a10279adea6a11039f2aeef37bc2cbc686c971"
                },
                {
                  "fixed": "c1f4588f8817e42a9bbdc1d1c14b188bd53d79e8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:sylius:sylius:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.9.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:sylius:sylius:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.10.0"
                      },
                      {
                        "fixed": "1.10.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:sylius:sylius:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.11.0"
                      },
                      {
                        "fixed": "1.11.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a23522172c3721ce778e6a48684396653d9a8358"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.10.11"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c1f4588f8817e42a9bbdc1d1c14b188bd53d79e8"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.11.2"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d7b8773600e69ccbcd6d498a77b98241c0049978"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.9.10"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.11.0",
            "v1.10.9",
            "v1.10.8",
            "v1.10.6",
            "v1.10.5",
            "v1.9.9",
            "v1.10.4",
            "v1.10.3",
            "v1.9.8",
            "v1.10.2",
            "v1.9.7",
            "v1.10.1",
            "v1.9.6",
            "v1.10.0",
            "v1.9.5",
            "v1.9.4",
            "v1.9.3",
            "v1.9.2",
            "v1.9.1",
            "v1.9.0",
            "v1.9.0-RC.2",
            "v1.9.0-RC.1",
            "v1.9.0-BETA.3",
            "v1.9.0-BETA.2",
            "v1.9.0-BETA.1",
            "v1.9.0-ALPHA.2",
            "v1.9.0-ALPHA.1",
            "v1.7.0-ALPHA.2",
            "v1.7.0-ALPHA.1",
            "v1.6.0-ALPHA.2",
            "v1.6.0-ALPHA.1",
            "v1.4.0-BETA.1",
            "v1.2.0-BETA",
            "v1.0.0",
            "v1.0.0-rc.2",
            "v1.0.0-rc.1",
            "v1.0.0-beta.3",
            "v1.0.0-beta.2",
            "v1.0.0-beta.1",
            "v1.0.0-alpha.2",
            "v1.0.0-alpha.1",
            "v0.18.0",
            "v0.19.0",
            "v0.17.0",
            "v0.16.0",
            "v0.15.0",
            "v0.14.0",
            "v0.13.0",
            "v0.12.0",
            "v0.11.0",
            "v0.10.0",
            "v0.9.0",
            "v0.8.0",
            "v0.7.0",
            "v0.6.0",
            "v0.5.0",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24749.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:21.375660498Z",
      "provider": "osv",
      "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/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24749.json",
        "https://github.com/Sylius/Sylius/security/advisories/GHSA-4qrp-27r3-66fj",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-24749"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-434",
          "CWE-80"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24749.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-24749",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 487537,
  "published_at": "2022-03-14T21:45:13+00:00"
}