Skip to content

GHSA-hc5c-r8m5-2gfh plone.restapi vulnerable to Stored Cross Site Scripting with SVG image in user portrait

LowCVSS 3.7
Published
Updated
Exploit status
No public exploit known

Description

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

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
pypi plone-restapi(PyPI) = 8.0.0; = 8.1.0; = 8.2.0; = 8.3.0 +81 more 8.43.3 Fixed
pypi plone.restapi(PyPI) >= 8.0.0, < 8.43.3 8.43.3 Fixed

Affected products

ProductAffected versionsFixed in
pypi plone-restapi(PyPI) >= 8.0.0, < 8.43.3 8.43.3
pypi plone-restapi(PyPI) = 8.0.0 No fix listed
pypi plone-restapi(PyPI) = 8.1.0 No fix listed
pypi plone-restapi(PyPI) = 8.10.0 No fix listed
pypi plone-restapi(PyPI) = 8.11.0 No fix listed
pypi plone-restapi(PyPI) = 8.12.0 No fix listed
pypi plone-restapi(PyPI) = 8.12.1 No fix listed
pypi plone-restapi(PyPI) = 8.13.0 No fix listed
pypi plone-restapi(PyPI) = 8.14.0 No fix listed
pypi plone-restapi(PyPI) = 8.15.0 No fix listed
pypi plone-restapi(PyPI) = 8.15.1 No fix listed
pypi plone-restapi(PyPI) = 8.15.2 No fix listed
pypi plone-restapi(PyPI) = 8.15.3 No fix listed
pypi plone-restapi(PyPI) = 8.16.0 No fix listed
pypi plone-restapi(PyPI) = 8.16.1 No fix listed
pypi plone-restapi(PyPI) = 8.16.2 No fix listed
pypi plone-restapi(PyPI) = 8.17.0 No fix listed
pypi plone-restapi(PyPI) = 8.18.0 No fix listed
pypi plone-restapi(PyPI) = 8.18.1 No fix listed
pypi plone-restapi(PyPI) = 8.19.0 No fix listed
pypi plone-restapi(PyPI) = 8.2.0 No fix listed
pypi plone-restapi(PyPI) = 8.20.0 No fix listed
pypi plone-restapi(PyPI) = 8.21.0 No fix listed
pypi plone-restapi(PyPI) = 8.21.1 No fix listed
pypi plone-restapi(PyPI) = 8.21.2 No fix listed
Show 61 more
ProductAffected versionsFixed in
pypi plone-restapi(PyPI) = 8.22.0 No fix listed
pypi plone-restapi(PyPI) = 8.23.0 No fix listed
pypi plone-restapi(PyPI) = 8.24.0 No fix listed
pypi plone-restapi(PyPI) = 8.24.1 No fix listed
pypi plone-restapi(PyPI) = 8.25.0 No fix listed
pypi plone-restapi(PyPI) = 8.25.1 No fix listed
pypi plone-restapi(PyPI) = 8.26.0 No fix listed
pypi plone-restapi(PyPI) = 8.27.0 No fix listed
pypi plone-restapi(PyPI) = 8.28.0 No fix listed
pypi plone-restapi(PyPI) = 8.29.0 No fix listed
pypi plone-restapi(PyPI) = 8.3.0 No fix listed
pypi plone-restapi(PyPI) = 8.3.1 No fix listed
pypi plone-restapi(PyPI) = 8.3.2 No fix listed
pypi plone-restapi(PyPI) = 8.30.0 No fix listed
pypi plone-restapi(PyPI) = 8.30.1.dev0 No fix listed
pypi plone-restapi(PyPI) = 8.31.0 No fix listed
pypi plone-restapi(PyPI) = 8.32.0 No fix listed
pypi plone-restapi(PyPI) = 8.32.1 No fix listed
pypi plone-restapi(PyPI) = 8.32.2 No fix listed
pypi plone-restapi(PyPI) = 8.32.3 No fix listed
pypi plone-restapi(PyPI) = 8.32.4 No fix listed
pypi plone-restapi(PyPI) = 8.32.4.dev0 No fix listed
pypi plone-restapi(PyPI) = 8.32.5 No fix listed
pypi plone-restapi(PyPI) = 8.32.6 No fix listed
pypi plone-restapi(PyPI) = 8.33.0 No fix listed
pypi plone-restapi(PyPI) = 8.33.1 No fix listed
pypi plone-restapi(PyPI) = 8.33.2 No fix listed
pypi plone-restapi(PyPI) = 8.33.3 No fix listed
pypi plone-restapi(PyPI) = 8.33.4.dev0 No fix listed
pypi plone-restapi(PyPI) = 8.34.0 No fix listed
pypi plone-restapi(PyPI) = 8.35.0 No fix listed
pypi plone-restapi(PyPI) = 8.35.1 No fix listed
pypi plone-restapi(PyPI) = 8.35.2 No fix listed
pypi plone-restapi(PyPI) = 8.35.3 No fix listed
pypi plone-restapi(PyPI) = 8.36.0 No fix listed
pypi plone-restapi(PyPI) = 8.36.1 No fix listed
pypi plone-restapi(PyPI) = 8.37.0 No fix listed
pypi plone-restapi(PyPI) = 8.38.0 No fix listed
pypi plone-restapi(PyPI) = 8.39.0 No fix listed
pypi plone-restapi(PyPI) = 8.39.1 No fix listed
pypi plone-restapi(PyPI) = 8.39.2 No fix listed
pypi plone-restapi(PyPI) = 8.4.0 No fix listed
pypi plone-restapi(PyPI) = 8.4.1 No fix listed
pypi plone-restapi(PyPI) = 8.4.2.dev0 No fix listed
pypi plone-restapi(PyPI) = 8.40.0 No fix listed
pypi plone-restapi(PyPI) = 8.41.0 No fix listed
pypi plone-restapi(PyPI) = 8.42.0 No fix listed
pypi plone-restapi(PyPI) = 8.42.1 No fix listed
pypi plone-restapi(PyPI) = 8.43.0 No fix listed
pypi plone-restapi(PyPI) = 8.43.1 No fix listed
pypi plone-restapi(PyPI) = 8.43.2 No fix listed
pypi plone-restapi(PyPI) = 8.5.0 No fix listed
pypi plone-restapi(PyPI) = 8.6.0 No fix listed
pypi plone-restapi(PyPI) = 8.6.1 No fix listed
pypi plone-restapi(PyPI) = 8.7.0 No fix listed
pypi plone-restapi(PyPI) = 8.7.1 No fix listed
pypi plone-restapi(PyPI) = 8.8.0 No fix listed
pypi plone-restapi(PyPI) = 8.8.1 No fix listed
pypi plone-restapi(PyPI) = 8.9.0 No fix listed
pypi plone-restapi(PyPI) = 8.9.1 No fix listed
pypi plone.restapi(PyPI) >= 8.0.0, < 8.43.3 8.43.3

References