GHSA-8rqh-vxpr-x77p: Plone.restapi Cross-Site Scripting Vulnerability
MODERATEGHSA-8rqh-vxpr-x77p is a MODERATE (CVSS 4.3) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Plone.restapi libraries in the PyPI ecosystem. The issue involves stored xss by spoofing mime type. Remediation is available by upgrading affected packages to version 9.15.6, 10.0.1.
GHSA-8rqh-vxpr-x77p at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix GHSA-8rqh-vxpr-x77p
To remediate this vulnerability, upgrade all affected Plone.restapi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install plone.restapi>=9.15.6
pip install plone.restapi>=10.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show plone.restapi
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-8rqh-vxpr-x77p, inspect your installed packages using pip:
pip show plone.restapi
Analyze the terminal output to locate any version of Plone.restapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.15.6), your application is affected.
Note: The pip show plone.restapi command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Plone.restapi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-8rqh-vxpr-x77p Affected Plone.restapi Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
plone.restapi
|
PyPI |
< 9.15.6
|
9.15.6
|
|
plone.restapi
|
PyPI |
≥ 10.0.0
< 10.0.1
All 1 versions
10.0.0
|
10.0.1
|
References
Frequently Asked Questions
What is GHSA-8rqh-vxpr-x77p?
Which Plone.restapi versions are affected?
What version fixes GHSA-8rqh-vxpr-x77p?
Is plone.restapi affected?
What is the CVSS score of GHSA-8rqh-vxpr-x77p?
What CWE is associated with GHSA-8rqh-vxpr-x77p?
How can I check PyPI dependencies for GHSA-8rqh-vxpr-x77p?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8rqh-vxpr-x77p",
"modified" : "2026-07-17T18:36:34Z",
"published" : "2026-07-17T18:36:34Z",
"aliases" : [ ],
"summary" : "plone.restapi: Stored XSS by spoofing mime type",
"details" : "### Impact\n\nA stored XSS affecting RichText fields. RichTextValue.output returns the raw, unsanitized stored value whenever the stored mimeType equals the outputMimeType. Because the safe-HTML output type (`text/x-html-safe`) is the type that signifies \"already sanitized\", any value whose stored mimeType equals it bypasses the safe_html transform entirely on render. The transform itself is sound — it correctly strips `on*` event-handler attributes and `javascript:/data:` URIs; the defect is that it is never invoked for these values. The unsanitized value is then emitted via `tal:content=\"structure ...\"`, which performs no escaping, so the payload executes in the viewer's browser. \n\nThis can be a problem when a RichText field is wrongly defined in code with a `mimeType` and `outputMimeType` that are the same, or when the REST API is used to the same effect.\n\nThis is the same vulnerability as reported in `plone.app.textfield`:\nhttps://github.com/plone/plone.app.textfield/security/advisories/GHSA-4r4f-gg25-rmg5\n\n### Patches\nThe problem has been patched:\n\n* For Plone 6.0 and 6.2, upgrade `plone.restapi` to 9.15.6.\n* For Plone 6.2, upgrade `plone.restapi` to 10.0.1.\n\nThis will prevent abusing the REST API to store wrong rich text values.\n\nThis will **not** prevent XSS from rich text fields that already have wrong values. For that, you will need a patched `plone.app.textfield` version. See the `plone.app.textfield` advisory linked above for versions.\n\n### Workarounds\nThere is no known workaround.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "plone.restapi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.15.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "plone.restapi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0"
}, {
"fixed" : "10.0.1"
} ]
} ],
"versions" : [ "10.0.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/plone/plone.app.textfield/security/advisories/GHSA-4r4f-gg25-rmg5"
}, {
"type" : "WEB",
"url" : "https://github.com/plone/plone.restapi/security/advisories/GHSA-8rqh-vxpr-x77p"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/plone/plone.restapi"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-80" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-17T18:36:34Z",
"nvd_published_at" : null
}
}