# GHSA-6f85-3f8q-qc94: OroCommerce vulnerable to XSS when adding class name to Selector Manager on pages that use GrapeJS editor

- Severity: Medium 6.9 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-07-15T19:25:06.000Z
- Modified: 2024-12-08T05:39:08.302Z
- Weaknesses: CWE-79

## 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
 - [https://github.com/artf/grapesjs/issues/4411](https://github.com/artf/grapesjs/issues/4411)

# Patch
Update GrapeJS dependency to >=[v0.19.5](https://github.com/artf/grapesjs/releases/tag/v0.19.5)

(As written by GitHub Advisory Database.)

## Affected

- oro/commerce (Packagist): from 5.0 before 5.0.4

## References

- <https://github.com/oroinc/orocommerce/security/advisories/GHSA-6f85-3f8q-qc94> (web)
- <https://github.com/artf/grapesjs/issues/4411> (web)
- <https://github.com/oroinc/orocommerce> (package)

## Sources

- GitHub Advisory Database: [GHSA-6f85-3f8q-qc94](https://github.com/advisories/GHSA-6f85-3f8q-qc94), CC-BY-4.0, modified 2024-12-08

---

Page: https://cve.day/GHSA-6f85-3f8q-qc94 · Whole record: https://cve.day/GHSA-6f85-3f8q-qc94.json · Rebuilt by cve.day 2026-11-25T22:56:31.312Z
