# Origin Validation Error in Magento 2

Advisory record · `GHSA-qf6q-qfwp-vp44`

- **Identifiers:** `GHSA-qf6q-qfwp-vp44` · `CVE-2020-8818` · `PKSA-63yn-hphh-7tpx`
- **State:** Confirmed
- **Severity:** CVSS 8.1 High
- **Critical:** No
- **Weakness (CWE):** [CWE-346](https://cwe.mitre.org/data/definitions/346.html)
- **Tags:** [CWE-346](https://agentprime.io/advisories/tag/cwe-346.md)
- **Published:** 12 Oct 2021
- **Updated:** 8 Nov 2023
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 12 Oct 2021, 16:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `cardgate/magento2` (Packagist): affected `<2.0.33`; fixed in `2.0.33`

## Machine-written summary

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

> The CardGate Payments plugin for Magento 2 (cardgate/magento2) through version 2.0.30 does not verify the origin of payment callback requests. A remote attacker can send a forged callback to replace critical settings such as the merchant ID and secret key, bypass payment, and receive later payments. Upgrade to version 2.0.33.

Written 5 Nov 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

- 8.1 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`, from GitHub Advisory Database

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

## Timeline

- 31 Oct 2026, 14:33 UTC: First seen by agentprime
- 31 Oct 2026, 14:33 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-qf6q-qfwp-vp44)

## Sources

- [GitHub Advisory Database: GHSA-qf6q-qfwp-vp44](https://github.com/advisories/GHSA-qf6q-qfwp-vp44)
- [OSV: GHSA-qf6q-qfwp-vp44](https://osv.dev/vulnerability/GHSA-qf6q-qfwp-vp44)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-8818>
- <https://github.com/cardgate/magento2/issues/54>
- <https://github.com/cardgate/magento2>
- <https://github.com/cardgate/magento2/blob/715979e54e1a335d78a8c5586f9e9987c3bf94fd/Controller/Payment/Callback.php#L88-L107>
- <https://github.com/cardgate/magento2/releases/tag/v2.0.33>
- <http://packetstormsecurity.com/files/156505/Magento-WooCommerce-CardGate-Payment-Gateway-2.0.30-Bypass.html>

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-qf6q-qfwp-vp44>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-qf6q-qfwp-vp44/>. Everything for agents: <https://agentprime.io/llms.txt>.
