{"id":"PYSEC-2026-2077","summary":"Zope vulnerable to Stored Cross Site Scripting with SVG images","details":"### Impact\nThere is a stored cross site scripting vulnerability for SVG images.\n\nNote 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.\n\nAll versions of Zope are impacted on sites that allow untrusted users to upload images.\n\n\n### Patches\nPatches will be released in Zope 4.8.10 and 5.8.5.\n\n### Workarounds\nMake sure the \"Add Documents, Images, and Files\" permission is only assigned to trusted roles. By default only the Manager has this permission.","aliases":["CVE-2023-42458","GHSA-wm8q-9975-xh5v"],"modified":"2026-07-07T17:48:05.676411954Z","published":"2026-07-07T11:45:24.678692Z","references":[{"type":"WEB","url":"https://github.com/zopefoundation/Zope/security/advisories/GHSA-wm8q-9975-xh5v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-42458"},{"type":"WEB","url":"https://github.com/zopefoundation/Zope/commit/26a55dbc301db417f47cafda6fe0f983b5690088"},{"type":"WEB","url":"https://github.com/zopefoundation/Zope/commit/603b0a12881c90a072a7a65e32d47ed898ce37cb"},{"type":"PACKAGE","url":"https://github.com/zopefoundation/Zope"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2023/09/22/2"},{"type":"PACKAGE","url":"https://pypi.org/project/zope"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wm8q-9975-xh5v"}],"affected":[{"package":{"name":"zope","ecosystem":"PyPI","purl":"pkg:pypi/zope"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.8.10"},{"introduced":"5.8.0"},{"fixed":"5.8.5"}]}],"versions":["4.0","4.0b1","4.0b10","4.0b2","4.0b3","4.0b4","4.0b5","4.0b6","4.0b7","4.0b8","4.0b9","4.1","4.1.1","4.1.2","4.1.3","4.2","4.2.1","4.3","4.4","4.4.1","4.4.2","4.4.3","4.4.4","4.5","4.5.1","4.5.2","4.5.3","4.5.4","4.5.5","4.6","4.6.1","4.6.2","4.6.3","4.7","4.8","4.8.1","4.8.2","4.8.3","4.8.4","4.8.5","4.8.6","4.8.7","4.8.8","4.8.9","5.8","5.8.1","5.8.2","5.8.3","5.8.4"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/zope/PYSEC-2026-2077.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N"}]}