# Cross site scripting in opencart

Advisory record · `GHSA-pqhq-77pw-763c`

- **Identifiers:** `GHSA-pqhq-77pw-763c` · `BIT-opencart-2024-21516` · `CVE-2024-21516` · `PKSA-v3cg-j7gm-sjd9`
- **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 package, versions 4.0.0.0 and later, has a reflected cross-site scripting flaw in the admin file manager listing's directory parameter. An attacker who knows the admin directory name could trick a user into clicking a crafted link, which can expose the user's token and run script in the admin area. The source says the fix is incomplete because the issue remains exploitable by an already-authenticated admin, and no fixed version is listed.

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-pqhq-77pw-763c)

## Sources

- [GitHub Advisory Database: GHSA-pqhq-77pw-763c](https://github.com/advisories/GHSA-pqhq-77pw-763c)
- [OSV: GHSA-pqhq-77pw-763c](https://osv.dev/vulnerability/GHSA-pqhq-77pw-763c)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21516>
- <https://github.com/opencart/opencart/commit/c546199e8f100c1f3797a7a9d3cf4db1887399a2>
- <https://github.com/opencart/opencart>
- <https://security.snyk.io/vuln/SNYK-PHP-OPENCARTOPENCART-7266576>

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-pqhq-77pw-763c>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-pqhq-77pw-763c/>. Everything for agents: <https://agentprime.io/llms.txt>.
