plone.restapi vulnerable to Stored Cross Site Scripting with SVG image in user portrait
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-79.
Summary
### Impact There is a stored cross site scripting vulnerability for SVG images uploaded in user portraits. Note that a page that uses an image tag with an SVG image as source is never vulnerable, even when the SVG image contains malicious code. To exploit the vulnerability, an attacker would first need to upload an SVG image as user portrait, and then trick a user into following a link to this portrait. ### Patches A patch will be released in `plone.restapi` 8.43.3. This version is good for Plone 6.0, and for Plone 5.2 on Python 3. In `plone.restapi` 7 or earlier there was no `@portrait` endpoint yet, so there is nothing to fix in that version. It is still vulnerable to this attack, and needs a [fix in Zope 4](https://github.com/zopefoundation/Zope/security/advisories/GHSA-wm8q-9975-xh5v). These two vulnerabilities share the same CVE: CVE-2023-42458. ### Workarounds You could remove the portrait field from the member data schema, and possibly remove all portraits that are already in the database, but this seems a bit drastic.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | plone.restapi (PyPI) | 8.0.0 to before 8.43.3 | 8.43.3 | Patch available | GHSA-hc5c-r8m5-2gfh |
- plone.restapi (PyPI) Vendor— Affected 8.0.0 to before 8.43.3 Fixed in 8.43.3 Patch available GHSA-hc5c-r8m5-2gfh
Remediation
- Fix · GHSA-hc5c-r8m5-2gfh plone.restapi (PyPI) Fixed in 8.43.3 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-hc5c-r8m5-2gfh
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences