---
id: CVE-2023-42458
aliases:
  - GHSA-wm8q-9975-xh5v
  - PYSEC-2026-2077
title: Zope vulnerable to Stored Cross Site Scripting with SVG images
summary: Zope vulnerable to Stored Cross Site Scripting with SVG images
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N'
vendor: zope
product: zope
ecosystem: pip
affected:
  - zope < 4.8.10
  - 'zope >= 5.8.0, < 5.8.5'
patched:
  - zope 4.8.10
  - zope 5.8.5
published: '2023-09-21'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:03.278125030Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-wm8q-9975-xh5v'
references:
  - url: >-
      https://github.com/zopefoundation/Zope/security/advisories/GHSA-wm8q-9975-xh5v
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-42458'
  - url: >-
      https://github.com/zopefoundation/Zope/commit/26a55dbc301db417f47cafda6fe0f983b5690088
  - url: >-
      https://github.com/zopefoundation/Zope/commit/603b0a12881c90a072a7a65e32d47ed898ce37cb
  - url: 'https://github.com/zopefoundation/Zope'
  - url: 'http://www.openwall.com/lists/oss-security/2023/09/22/2'
tags:
  - osv
  - pip
epss: 0.00714
epssPercentile: 0.51708
ingestedAt: '2026-07-08T18:25:53.846Z'
---

## Overview

### Impact
There is a stored cross site scripting vulnerability for SVG images.

Note that 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 image, and then trick a user into following a specially crafted link.

All versions of Zope are impacted on sites that allow untrusted users to upload images.


### Patches
Patches will be released in Zope 4.8.10 and 5.8.5.

### Workarounds
Make sure the "Add Documents, Images, and Files" permission is only assigned to trusted roles. By default only the Manager has this permission.

## Affected packages

- `zope < 4.8.10`
- `zope >= 5.8.0, < 5.8.5`

## Remediation

Upgrade to a patched release:

- `zope 4.8.10`
- `zope 5.8.5`
