MediumGHSA-v2f9-rv6w-vw8r

Sylius potentially vulnerable to Cross Site Scripting via "Name" field (Taxons, Products, Options, Variants) in Admin Panel

Affected versionsbefore 1.9.12, 1.10.0-alpha.1 to before 1.10.16, 1.11.0-alpha.1 to before 1.11.17, 1.12.0-alpha.1 to before 1.12.16, 1.13.0-alpha.1 to before 1.13.1 - fixed in 1.9.12

Details

### Impact There is a possibility to execute javascript code in the Admin panel. In order to perform an XSS attack input a script into `Name` field in which of the resources: Taxons, Products, Product Options or Product Variants. The code will be executed while using an autocomplete field with one of the listed entities in the Admin Panel. Also for the taxons in the category tree on the product form. ### Patches The issue is fixed in versions: 1.9.12, 1.10.16, 1.11.17, 1.12.16, 1.13.1 and above. ### Workarounds 1. Create a new file `assets/admin/sylius-lazy-choice-tree.js`: ```js // asset

Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected

Inside rootscan

Illustrative rootscan dashboard

Illustrative product preview with sample data. Explore an interactive sample finding

Connect your Shopify store

Connect once. Keep watch.

Enter your store address to prepare your connection.

Website preview: this prepares a connection summary. No app is installed and no scan runs.

Check this website

No account needed for the free scan.

The free public scan needs no account and does not log in to the site. If you later buy a pentest, you will create an account, prove you control the target, and tick a permission checkbox before any active test starts.

Run the free scan Already have an account? Sign in

No active test starts until you authorize it in the app.