CVE-2022-35950 OroCommerce Cross-site Scripting vulnerability in add note dialog of Shopping List line item
An attacker with admin access can inject JavaScript into product names, leading to script execution on the storefront when users add notes to shopping list items.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-35950?
CVE-2022-35950 is a medium-severity cross-site scripting vulnerability in oroinc orocommerce, published on 9 Oct 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2022-35950?
8 open source packages ship an affected version, including oro/commerce. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
oro/commerce Packagist | From 4.1.0 to 4.1.13 | None |
oro/commerce Packagist | From 4.1.0 to 4.1.13 | None |
oro/commerce Packagist | From 4.2.0 to 4.2.10 | None |
oro/commerce Packagist | From 4.2.0 to 4.2.10 | None |
oro/commerce Packagist | From 5.0.0 | 5.0.11 |
oro/commerce Packagist | From 5.0.0 | 5.0.11 |
2 more packages
oro/commerce Packagist | From 5.1.0 | 5.1.1 |
oro/commerce Packagist | From 5.1.0 | 5.1.1 |
Products include Oroinc Orocommerce.
How do I fix CVE-2022-35950?
Upgrade oro/commerce to a fixed version for your release line: 5.0.11 or 5.1.1.
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 CVE-2022-35950 being exploited?
There is no known exploitation of CVE-2022-35950 in the wild and no public exploit code.
Other vulnerabilities in oroinc orocommerce
Sources
Also known as GHSA-2jc6-3fhj-8q84.