# CVE-2024-21517: Cross site scripting in opencart

- Severity: Low 2.1 (CVSS:4.0, scored by snyk) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`
- 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.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-22T05:00:02.595Z
- Modified: 2026-09-10T03:50:15.740Z
- Also known as: GHSA-qc3q-8rr8-8p5v, BIT-OPENCART-2024-21517
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## Description

This affects versions of the package opencart/opencart from 4.0.0.0. A reflected XSS issue was identified in the redirect parameter of customer account/login route. An attacker can inject arbitrary HTML and Javascript into the page response. As this vulnerability is present in the account functionality it could be used to target and attack customers of the OpenCart shop.

**Notes:**

1) The fix for this vulnerability is incomplete

(As written by CVE List.)

## Affected

- opencart/opencart: from 4.0.0.0 before *
- opencart opencart: before 4.0.0.0; from 4.0.0.0
- opencart/opencart (Packagist): from 4.0.0.0
- opencart (Bitnami): from 4.0.0-0

## Every score

- snyk: CVSS:4.0 2.1 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P`
- snyk: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Low

## References

- <https://security.snyk.io/vuln/SNYK-PHP-OPENCARTOPENCART-7266577> (exploit, patch, third-party-advisory, web)
- <https://github.com/opencart/opencart/commit/0fd1ee4b6c94366bf3e5d3831a8336f3275d1860> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21517> (advisory, web)
- <https://github.com/opencart/opencart> (package)

## Sources

- CVE List: [CVE-2024-21517](https://www.cve.org/CVERecord?id=CVE-2024-21517), CVE Terms of Use, modified 2025-01-14
- GitHub Advisory Database: [GHSA-qc3q-8rr8-8p5v](https://github.com/advisories/GHSA-qc3q-8rr8-8p5v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-21517](https://nvd.nist.gov/vuln/detail/CVE-2024-21517), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-OPENCART-2024-21517](https://osv.dev/vulnerability/BIT-OPENCART-2024-21517), Apache-2.0, modified 2025-04-14

---

Page: https://cve.day/CVE-2024-21517 · Whole record: https://cve.day/CVE-2024-21517.json · Rebuilt by cve.day 2026-11-25T22:58:42.141Z
