Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1oYzVjLXI4bTUtMmdmaM4AA1_4

plone.restapi vulnerable to Stored Cross Site Scripting with SVG image in user portrait

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.

Permalink: https://github.com/advisories/GHSA-hc5c-r8m5-2gfh
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oYzVjLXI4bTUtMmdmaM4AA1_4
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 7 months ago
Updated: 7 months ago


CVSS Score: 3.7
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N

Identifiers: GHSA-hc5c-r8m5-2gfh
References: Repository: https://github.com/plone/plone.restapi
Blast Radius: 8.0

Affected Packages

pypi:plone.restapi
Dependent packages: 38
Dependent repositories: 141
Downloads: 8,902 last month
Affected Version Ranges: >= 8.0.0, < 8.43.3
Fixed in: 8.43.3
All affected versions: 8.0.0, 8.1.0, 8.2.0, 8.3.0, 8.3.1, 8.3.2, 8.4.0, 8.4.1, 8.5.0, 8.6.0, 8.6.1, 8.7.0, 8.7.1, 8.8.0, 8.8.1, 8.9.0, 8.9.1, 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,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