# Possible XSS injection through Validate::isCleanHTML method

Advisory record · `GHSA-fh7r-996q-gvcp`

- **Identifiers:** `GHSA-fh7r-996q-gvcp` · `CVE-2023-30838` · `PKSA-wd7z-qmwt-pf5g`
- **State:** Confirmed
- **Severity:** CVSS 8.6 High
- **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:** 25 Apr 2023
- **Updated:** 16 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 25 Apr 2023, 19:47 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `prestashop/prestashop` (Packagist): affected `>=8.0.0, <8.0.4 || <1.7.8.9`; fixed in `8.0.4`, `1.7.8.9`

## Machine-written summary

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

> GHSA-fh7r-996q-gvcp affects the prestashop/prestashop Packagist package in versions below 1.7.8.9 and from 8.0.0 up to 8.0.4. The isCleanHTML() validation method misses certain events, so an attacker can inject cross-site scripting that hijacks HTML attributes and runs without user interaction. Upgrade to 1.7.8.9 or 8.0.4. No workaround is listed.

Written 3 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.6 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`, from CNA (GitHub_M)

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

## Timeline

- 31 Oct 2026, 14:25 UTC: First seen by agentprime
- 31 Oct 2026, 14:25 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-fh7r-996q-gvcp)

## Sources

- [GitHub Advisory Database: GHSA-fh7r-996q-gvcp](https://github.com/advisories/GHSA-fh7r-996q-gvcp)
- [OSV: GHSA-fh7r-996q-gvcp](https://osv.dev/vulnerability/GHSA-fh7r-996q-gvcp)
- <https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-fh7r-996q-gvcp>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-30838>
- <https://github.com/PrestaShop/PrestaShop/commit/46408ae4b02f3b8b1bb6e9dc63af5bcd858abd9c>
- <https://github.com/PrestaShop/PrestaShop/commit/dc682192df0e4b0d656a8e645b29ca1b9dbe3693>
- <https://github.com/PrestaShop/PrestaShop>
- <https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.9>
- <https://github.com/PrestaShop/PrestaShop/releases/tag/8.0.4>

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-fh7r-996q-gvcp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-fh7r-996q-gvcp/>. Everything for agents: <https://agentprime.io/llms.txt>.
