# CVE-2022-31037: OroCommerce vulnerable to Cross-site Scripting via Shipping rule editing page

- Severity: Medium 6.9 (CVSS:3.1, scored by GitHub_M) `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
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 41% of CVEs (2026-11-30)
- Published: 2022-10-18T00:00:00.000Z
- Modified: 2026-06-17T04:44:39.657Z
- Also known as: GHSA-4vf4-955g-vxp2
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

OroCommerce is an open-source Business to Business Commerce application. Versions between 4.1.0 and 4.1.17 inclusive, 4.2.0 and 4.2.11 inclusive, and between 5.0.0 and 5.0.3 inclusive, are vulnerable to Cross-site Scripting in the UPS Surcharge field of the Shipping rule edit page. The attacker needs permission to create or edit a shipping rule. This issue has been patched in version 5.0.6. There are no known workarounds.

(As written by CVE List.)

## Affected

- oroinc orocommerce: >= 4.1.0, <= 4.1.17; >= 4.2.0, <= 4.2.11 ; >= 5.0.0, <= 5.0.3; from 4.1.0 up to 4.1.17; from 4.2.0 up to 4.2.11; from 5.0.0 up to 5.0.3
- oro/commerce (Packagist): from 4.1.0 before 5.0.6

## Every score

- GitHub_M: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/oroinc/orocommerce/security/advisories/GHSA-4vf4-955g-vxp2> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31037> (advisory)
- <https://github.com/oroinc/orocommerce> (package)

## Sources

- CVE List: [CVE-2022-31037](https://www.cve.org/CVERecord?id=CVE-2022-31037), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-4vf4-955g-vxp2](https://github.com/advisories/GHSA-4vf4-955g-vxp2), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31037](https://nvd.nist.gov/vuln/detail/CVE-2022-31037), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31037 · Whole record: https://cve.day/CVE-2022-31037.json · Rebuilt by cve.day 2026-11-25T22:58:15.811Z
