CVE-2022-35950 — commerce
MEDIUMCVE-2022-35950 is a medium-severity (CVSS 6.9) Cross-site Scripting (XSS) vulnerability in oro/commerce. A fix is available for oro/commerce — see the affected versions and patch details below.
OroCommerce Cross-site Scripting vulnerability in add note dialog of Shopping List line item
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2022-35950.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
oro/commerce🐘oro/commerce🐘oro/commerce🐘oro/commerceReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
OroCommerce is an open-source Business to Business Commerce application. In versions 4.1.0 through 4.1.13, 4.2.0 through 4.2.10, 5.0.0 prior to 5.0.11, and 5.1.0 prior to 5.1.1, the JS payload added to the product name may be executed at the storefront when adding a note to the shopping list line item containing a vulnerable product. An attacker should be able to edit a product in the admin area and force a user to add this product to Shopping List and click add a note for it. Versions 5.0.11 and 5.1.1 contain a fix for this issue.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | oro/commerce | ≥ 4.1.0 | No fix |
| 🐘Packagist | oro/commerce | ≥ 4.2.0 | No fix |
| 🐘Packagist | oro/commerce | ≥ 5.0.0&&< 5.0.11 | 5.0.11composer require oro/commerce:^5.0.11 |
| 🐘Packagist | oro/commerce | ≥ 5.1.0&&< 5.1.1 | 5.1.1composer require oro/commerce:^5.1.1 |
Affected Products
orocommerceoroincDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for oro/commerce, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
A fix is available for CVE-2022-35950; check the affected-versions list above or the advisory for the patched release of oro/commerce, then make sure no transitive dependency still pins the vulnerable range.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2022-35950 in your dependencies?
Find it across Packagist, including transitive dependencies.