{"id":"CVE-2022-31037","summary":"OroCommerce vulnerable to Cross-site Scripting via Shipping rule editing page","details":"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.","aliases":["GHSA-4vf4-955g-vxp2"],"modified":"2026-04-26T04:11:18.873107Z","published":"2022-10-18T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31037.json","cwe_ids":["CWE-79"],"cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31037.json"},{"type":"ADVISORY","url":"https://github.com/oroinc/orocommerce/security/advisories/GHSA-4vf4-955g-vxp2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31037"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/oroinc/orocommerce","events":[{"introduced":"c2cd64739319fe0c592a64a94c727ed3a091b999"},{"last_affected":"7d0c04527a84fe14381366862a5d83b72de5b8e7"}],"database_specific":{"extracted_events":[{"introduced":"5.0.0"},{"last_affected":"5.0.3"}],"source":"CPE_FIELD","cpe":"cpe:2.3:a:oroinc:orocommerce:*:*:*:*:*:*:*:*"}}],"versions":["5.0.0","5.0.1","5.0.2","5.0.3"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-31037.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N"}]}