# CVE-2022-31037: OroCommerce Cross site scripting vulnerability during shipping rule editing for UPS integration

Source: https://junglewise.ai/threats/cve-2022-31037-orocommerce-cross-site-scripting-vulnerability-during-shipping  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-10-18  
License: CC BY 4.0 with a link back

CVE-2022-31037 · Severity: low · CVSS 3.1 · Published 2022-10-18

OroCommerce Cross site scripting vulnerability during shipping rule editing for UPS integration

Technologies: [oro/commerce (Packagist)](https://junglewise.ai/threats/technologies/oro-commerce). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2022-31037 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-31037 being exploited in the wild.

**How severe is CVE-2022-31037?** Low severity, with a CVSS score of 3.1, published 18 October 2022.

**Which products and versions are affected?** oro/commerce (Packagist) ECOSYSTEM:introduced=4.1.0,fixed=5.0.6.

**Is there a fix for CVE-2022-31037?** Yes. oro/commerce (Packagist): upgrade to 5.0.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-31037?** Check whether you run oro/commerce (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- oro/commerce (Packagist): upgrade to 5.0.6 or later

  ```sh
  composer require oro/commerce:^5.0.6
  ```


## Affected products

- oro/commerce (Packagist) ECOSYSTEM:introduced=4.1.0,fixed=5.0.6

## Identifiers

- CVE-2022-31037
- GHSA-4vf4-955g-vxp2

## Related threats

- [OroCommerce get-totals-for-checkout API endpoint returns unwanted data](https://junglewise.ai/threats/cve-2023-32065-orocommerce-get-totals-for-checkout-api-endpoint-returns-unwanted)
- [OroCommerce Cross-site Scripting vulnerability in add note dialog of Shopping List line item](https://junglewise.ai/threats/cve-2022-35950-orocommerce-cross-site-scripting-vulnerability-in-add-note-dialog)
- [OroCommerce vulnerable to XSS when adding class name to Selector Manager on pages that use GrapeJS editor](https://junglewise.ai/threats/orocommerce-vulnerable-to-xss-when-adding-class-name-to-selector-828d45e9)
