GHSA-8RQH-VXPR-X77P

GHSA-8RQH-VXPR-X77P is a medium-severity security vulnerability in plone.restapi (pip), affecting versions < 9.15.6. It is fixed in 9.15.6, 10.0.1.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

plone.restapi: Stored XSS by spoofing mime type

Workarounds

There is no known workaround.

Impact

A 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.

This 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.

This is the same vulnerability as reported in plone.app.textfield:
https://github.com/plone/plone.app.textfield/security/advisories/GHSA-4r4f-gg25-rmg5

GHSA-8RQH-VXPR-X77P has a CVSS score of 4.3 (Medium). The vector is network-reachable, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (9.15.6, 10.0.1); upgrading removes the vulnerable code path.

Affected versions

plone.restapi (< 9.15.6) plone.restapi (= 10.0.0)

Security releases

plone.restapi → 9.15.6 (pip) plone.restapi → 10.0.1 (pip)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

The problem has been patched:

  • For Plone 6.0 and 6.2, upgrade plone.restapi to 9.15.6.
  • For Plone 6.2, upgrade plone.restapi to 10.0.1.

This will prevent abusing the REST API to store wrong rich text values.

This 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.

Frequently Asked Questions

  1. What is GHSA-8RQH-VXPR-X77P? GHSA-8RQH-VXPR-X77P is a medium-severity security vulnerability in plone.restapi (pip), affecting versions < 9.15.6. It is fixed in 9.15.6, 10.0.1.
  2. How severe is GHSA-8RQH-VXPR-X77P? GHSA-8RQH-VXPR-X77P has a CVSS score of 4.3 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of plone.restapi are affected by GHSA-8RQH-VXPR-X77P? plone.restapi (pip) versions < 9.15.6 is affected.
  4. Is there a fix for GHSA-8RQH-VXPR-X77P? Yes. GHSA-8RQH-VXPR-X77P is fixed in 9.15.6, 10.0.1. Upgrade to this version or later.
  5. Is GHSA-8RQH-VXPR-X77P exploitable, and should I be worried? Whether GHSA-8RQH-VXPR-X77P is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether GHSA-8RQH-VXPR-X77P is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix GHSA-8RQH-VXPR-X77P?
    • Upgrade plone.restapi to 9.15.6 or later
    • Upgrade plone.restapi to 10.0.1 or later

Other vulnerabilities in plone.restapi

Stop the waste.
Protect your environment with Kodem.