Vulnerability · Published Sep 21, 2023 · Assigned by GitHub_M
CVE-2023-42458Zope vulnerable to Stored Cross Site Scripting with SVG images
Low 3.7
In plain English
A low-severity cross-site scripting in Zope from zopefoundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | zope | 4.8.10 | GHSA-wm8q-9975-xh5v |
| PyPI | zope | 5.8.5 | GHSA-wm8q-9975-xh5v |
| PyPI | zope | 4.8.10, 5.8.5 | PYSEC-2026-2077 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| zopefoundation | Zope | < 4.8.10>= 5.0.0, < 5.8.5 |
Weakness: CWE-80, CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
References
- https://github.com/zopefoundation/Zope/security/advisories/GHSA-wm8q-9975-xh5v x_refsource_CONFIRM
- https://github.com/zopefoundation/Zope/commit/26a55dbc301db417f47cafda6fe0f983b5690088 x_refsource_MISC
- https://github.com/zopefoundation/Zope/commit/603b0a12881c90a072a7a65e32d47ed898ce37cb x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2023/09/22/2