Loading advisory.
Loading advisory.
plone.restapi vulnerable to Stored Cross Site Scripting with SVG image in user portrait
There is a stored cross site scripting vulnerability for SVG images uploaded in user portraits.
Published 2023-09-21 17:16 UTC · Modified 2024-12-04 05:39 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| plone-restapi | PyPI | >= 8.0.0, < 8.43.3 versions 8.0.0, 8.1.0, 8.10.0, 8.11.0, 8.12.0, 8.12.1, 8.13.0, 8.14.0, 8.15.0, 8.15.1, 8.15.2, 8.15.3, 8.16.0, 8.16.1, 8.16.2, 8.17.0, 8.18.0, 8.18.1, 8.19.0, 8.2.0 and 64 more | 8.43.3 | pip install --upgrade 'plone-restapi>=8.43.3' |
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.
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.
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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.