GHSA-6f85-3f8q-qc94 OroCommerce vulnerable to XSS when adding class name to Selector Manager on pages that use GrapeJS editor
Attackers can inject JavaScript via class names in the GrapeJS editor, potentially leading to code execution or account takeover.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-6f85-3f8q-qc94?
GHSA-6f85-3f8q-qc94 is a cross-site scripting vulnerability in oro/commerce, published on 15 Jul 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Impact
Due to insufficient class name validation in GrapeJS library it's possible to add executable JS code in class name through Selector Manager
Relates to
Patch
Update GrapeJS dependency to >=v0.19.5
Which versions are affected by GHSA-6f85-3f8q-qc94?
2 open source packages ship an affected version, including oro/commerce.
| Package | Affected | Fixed in |
|---|---|---|
oro/commerce Packagist | From 5.0 | 5.0.4 |
oro/commerce Packagist | From 5.0 | 5.0.4 |
How do I fix GHSA-6f85-3f8q-qc94?
Upgrade oro/commerce to 5.0.4 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is GHSA-6f85-3f8q-qc94 being exploited?
There is no known exploitation of GHSA-6f85-3f8q-qc94 in the wild and no public exploit code.