3.7low
plone.namedfile vulnerable to Stored Cross Site Scripting with SVG images
- Severity
- 3.7low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.57% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jj7c-jrv4-c65xPYSEC-2023-311
Description
plone.namedfile allows users to handle `File` and `Image` fields targeting, but not depending on, Plone Dexterity content. Prior to versions 5.6.1, 6.0.3, 6.1.3, and 6.2.1, there is a stored cross site scripting vulnerability for SVG images. A security hotfix from 2021 already partially fixed this by making sure SVG images are always downloaded instead of shown inline. But the same problem still exists for scales of SVG images. Note that an image tag with an SVG image as source is not 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 versions 5.6.1 (for Plone 5.2), 6.0.3 (for Plone 6.0.0-6.0.4), 6.1.3 (for Plone 6.0.5-6.0.6), and 6.2.1 (for Plone 6.0.7). There are no known workarounds.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| plone plone.namedfile | < 5.6.1, >= 6.0.0, < 6.0.3, >= 6.1.0, < 6.1.3, >= 6.2.0, < 6.2.1 | CVE List |
| plone-namedfile (PyPI) | before 5.6.1, from 6.0.0 before 6.0.3, from 6.1.0 before 6.1.3, from 6.2.0 before 6.2.1, before 188f66a4577021cf8f2bf7c0f5150f9b9573f167, before 217d6ce847b7171bf1b73fcb6c08010eb449216a, before f0f911f2a72b2e5c923dc2ab9179319cc47788f9, before ff5269fb4c79f4eb91dd934561b8824a49a03b60 | GitHub Advisory Database, PyPA Advisory Database |
| plone namedfile | before 5.6.1, from 6.0.0 before 6.0.3, from 6.1.0 before 6.1.3, 6.2.0 | NVD |
All scores
| GitHub_M | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| PyPA Advisory Database | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
What each source says
CVE List
plone.namedfile allows users to handle `File` and `Image` fields targeting, but not depending on, Plone Dexterity content. Prior to versions 5.6.1, 6.0.3, 6.1.3, and 6.2.1, there is a stored cross site scripting vulnerability for SVG images. A security hotfix from 2021 already partially fixed this by making sure SVG images are always downloaded instead of shown inline. But the same problem still exists for scales of SVG images. Note that an image tag with an SVG image as source is not 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 versions 5.6.1 (for Plone 5.2), 6.0.3 (for Plone 6.0.0-6.0.4), 6.1.3 (for Plone 6.0.5-6.0.6), and 6.2.1 (for Plone 6.0.7). There are no known workarounds.
GitHub Advisory Database
Impact
There is a stored cross site scripting vulnerability for SVG images. A security hotfix from 2021 already partially fixed this, by making sure SVG images are always downloaded instead of shown inline. But the same problem still exists for scales of SVG images.
Note that an image tag with an SVG image as source is not 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 plone.namedfile are impacted.
Patches
Patches will be released in various plone.namedfile releases:
- 5.6.1 (for Plone 5.2)
- 6.0.3 (for Plone 6.0.0-6.0.4)
- 6.1.3 (for Plone 6.0.5-6.0.6)
- 6.2.1 (for Plone 6.0.7)
Workarounds
There is no workaround.
NVD (es)
plone.namedfile permite a los usuarios manejar los campos `File` e `Image` dirigidos, pero no dependiendo del contenido de Plone Dexterity. Antes de las versiones 5.6.1, 6.0.3, 6.1.3 y 6.2.1, existe una vulnerabilidad de Cross-Site Scripting almacenado para imágenes SVG. Una revisión de seguridad de 2021 ya solucionó parcialmente este problema al garantizar que las imágenes SVG siempre se descarguen en lugar de mostrarse en línea. Pero el mismo problema todavía existe para las escalas de imágenes SVG. Tenga en cuenta que una etiqueta de imagen con una imagen SVG como fuente no es vulnerable, incluso cuando la imagen SVG contiene código malicioso. Para explotar la vulnerabilidad, un atacante primero tendría que cargar una imagen y luego engañar al usuario para que siga un enlace especialmente manipulado. Los parches están disponibles en las versiones 5.6.1 (para Plone 5.2), 6.0.3 (para Plone 6.0.0-6.0.4), 6.1.3 (para Plone 6.0.5-6.0.6) y 6.2.1 (para Plón 6.0.7). No se conocen workarounds.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-41048 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jj7c-jrv4-c65x changed 2026-06-10 | CC-BY-4.0 |
| NVD | CVE-2023-41048 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-311 changed 2026-06-10 | CC-BY-4.0 |