# Cross site scripting in opencart

Advisory record · `GHSA-qx44-885h-7p56`

- **Identifiers:** `GHSA-qx44-885h-7p56` · `BIT-opencart-2024-21515` · `CVE-2024-21515` · `PKSA-wvph-c931-dvvm`
- **State:** Confirmed
- **Severity:** CVSS 2.1 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 22 Jun 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 22 Jun 2024, 06:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `opencart/opencart` (Packagist): affected `>=4.0.0.0`; no fixed version yet

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The opencart/opencart Packagist package from 4.0.0.0 has a reflected cross-site scripting flaw in the filename parameter of the admin tool/log route. An attacker who knows the admin directory name could trick a user into clicking a crafted link to steal their token and run script in the admin area. No fixed version is listed, and the source says the partial fix leaves admins exposed while already logged in.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 2.1 Low, CVSS 4.0: `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`, from CNA (snyk)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0037, the 31st percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:03 UTC: First seen by agentprime
- 31 Oct 2026, 14:03 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-qx44-885h-7p56)

## Sources

- [GitHub Advisory Database: GHSA-qx44-885h-7p56](https://github.com/advisories/GHSA-qx44-885h-7p56)
- [OSV: GHSA-qx44-885h-7p56](https://osv.dev/vulnerability/GHSA-qx44-885h-7p56)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21515>
- <https://github.com/opencart/opencart/commit/c546199e8f100c1f3797a7a9d3cf4db1887399a2>
- <https://github.com/opencart/opencart>
- <https://security.snyk.io/vuln/SNYK-PHP-OPENCARTOPENCART-7266573>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-qx44-885h-7p56>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-qx44-885h-7p56/>. Everything for agents: <https://agentprime.io/llms.txt>.
