CVE-2023-41048
JSON

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 packageVersionsReported by
plone plone.namedfile< 5.6.1, >= 6.0.0, < 6.0.3, >= 6.1.0, < 6.1.3, >= 6.2.0, < 6.2.1CVE 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 ff5269fb4c79f4eb91dd934561b8824a49a03b60GitHub Advisory Database, PyPA Advisory Database
plone namedfilebefore 5.6.1, from 6.0.0 before 6.0.3, from 6.1.0 before 6.1.3, 6.2.0NVD

All scores

GitHub_M3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
GitHub3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
PyPA Advisory Database5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79CWE-80

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

https://github.com/plone/plone.namedfile/security/advisories/GHSA-jj7c-jrv4-c65xadvisory, vendor-advisory, web
https://github.com/plone/plone.namedfile/commit/188f66a4577021cf8f2bf7c0f5150f9b9573f167fix, patch, web
https://github.com/plone/plone.namedfile/commit/217d6ce847b7171bf1b73fcb6c08010eb449216afix, patch, web
https://github.com/plone/plone.namedfile/commit/f0f911f2a72b2e5c923dc2ab9179319cc47788f9fix, patch, web
https://github.com/plone/plone.namedfile/commit/ff5269fb4c79f4eb91dd934561b8824a49a03b60fix, patch, web
https://github.com/plone/Products.PloneHotfix20210518product, web
http://www.openwall.com/lists/oss-security/2023/09/22/2article, mailing-list, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2023-41048advisory
https://github.com/plone/plone.namedfilepackage
https://github.com/pypa/advisory-database/tree/main/vulns/plone-namedfile/PYSEC-2023-311.yamlweb
https://github.com/advisories/GHSA-jj7c-jrv4-c65xadvisory

Sources

SourceRecordLicence
CVE ListCVE-2023-41048 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-jj7c-jrv4-c65x changed 2026-06-10CC-BY-4.0
NVDCVE-2023-41048 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2023-311 changed 2026-06-10CC-BY-4.0