# Stored cross-site scripting in PHP Point of Sale version 19.0, by PHP Point of Sale, LLC via file upload and download functionality.

CVE record · `CVE-2022-40289`

- **Identifiers:** `CVE-2022-40289`
- **State:** Confirmed
- **Severity:** CVSS 9.0 Critical
- **Critical:** Yes: CVSS 9+
- **CNA:** TML
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Technologies:** [PHP Point of Sale](https://agentprime.io/advisories/technology/php-point-of-sale.md)
- **Published:** 31 Oct 2022
- **Updated:** 6 May 2025
- **Reviewed by a person:** No

Published by the CVE Program (CNA: TML) at 31 Oct 2022, 20:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Critical

Critical, because:

- CVSS score 9.0: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected products, as the CNA wrote them

- Vendor: PHP Point of Sale LLC. Product: PHP Point of Sale.
  - affected: `0`
  - Other versions: unaffected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 9.0 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0072, the 54th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 31 Oct 2022. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2022-40289](https://www.cve.org/CVERecord?id=CVE-2022-40289)
- [NVD: CVE-2022-40289](https://nvd.nist.gov/vuln/detail/CVE-2022-40289)

### References from the CNA

- <https://www.themissinglink.com.au/security-advisories/cve-2022-40289>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-40289>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-40289/>. Everything for agents: <https://agentprime.io/llms.txt>.
