Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. plone.restapi
  4. ›
  5. GMS-2023-2597

GMS-2023-2597: plone.restapi vulnerable to Stored Cross Site Scripting with SVG image in user portrait

September 21, 2023

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.

References

  • github.com/advisories/GHSA-hc5c-r8m5-2gfh
  • github.com/plone/plone.restapi/commit/5f44c23ac69db7d6d933d77f177e07603cf05f8b
  • github.com/plone/plone.restapi/security/advisories/GHSA-hc5c-r8m5-2gfh
  • github.com/zopefoundation/Zope/security/advisories/GHSA-wm8q-9975-xh5v

Code Behaviors & Features

Detect and mitigate GMS-2023-2597 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 8.0.0 before 8.43.3

Fixed versions

  • 8.43.3

Solution

Upgrade to version 8.43.3 or above.

Source file

pypi/plone.restapi/GMS-2023-2597.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:11 +0000.