# plone.restapi: Stored XSS by spoofing mime type

Advisory record · `GHSA-8rqh-vxpr-x77p`

- **Identifiers:** `GHSA-8rqh-vxpr-x77p`
- **State:** Confirmed
- **Severity:** CVSS 4.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-80](https://cwe.mitre.org/data/definitions/80.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 17 Jul 2026
- **Updated:** 17 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 17 Jul 2026, 18:36 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `plone-restapi` (PyPI): affected `<9.15.6 || >=10.0.0, <10.0.1`; fixed in `9.15.6`, `10.0.1`

## Machine-written summary

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

> Versions of plone-restapi below 9.15.6, and from 10.0.0 up to but not including 10.0.1, are affected by a stored cross-site scripting flaw in RichText fields. When a stored value's MIME type matches the safe-HTML output type, the value is rendered without sanitization, so a user who views the content can have script run in their browser. Upgrade to plone-restapi 9.15.6 or 10.0.1. Existing rich text values that are already wrong are not fixed by this upgrade, and the advisory says a patched plone.app.textfield is needed for those, but the source gives no workaround.

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

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

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

- 31 Oct 2026, 14:42 UTC: First seen by agentprime
- 31 Oct 2026, 14:42 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-8rqh-vxpr-x77p)

## Sources

- [GitHub Advisory Database: GHSA-8rqh-vxpr-x77p](https://github.com/advisories/GHSA-8rqh-vxpr-x77p)
- [OSV: GHSA-8rqh-vxpr-x77p](https://osv.dev/vulnerability/GHSA-8rqh-vxpr-x77p)
- <https://github.com/plone/plone.app.textfield/security/advisories/GHSA-4r4f-gg25-rmg5>
- <https://github.com/plone/plone.restapi/security/advisories/GHSA-8rqh-vxpr-x77p>
- <https://github.com/plone/plone.restapi>

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-8rqh-vxpr-x77p>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-8rqh-vxpr-x77p/>. Everything for agents: <https://agentprime.io/llms.txt>.
