CVE-2023-41048: Plone.namedfile Plone.namedfile Vulnerable To Stored Cross Vulnerability

LOW
Advisory Identifier: GHSA-jj7c-jrv4-c65x
CVSS 3.7
CWE-80 CWE-79
Published
Advisory Summary

CVE-2023-41048 is a LOW (CVSS 3.7) plone.namedfile vulnerable to stored cross vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Plone.namedfile libraries in the PyPI ecosystem. The issue involves plone.namedfile vulnerable to stored cross site scripting with svg images. Remediation is available by upgrading affected packages to version 5.6.1, 6.0.3, 6.1.3, 6.2.1.

CVE-2023-41048 at a Glance

CVE Identifier CVE-2023-41048
GHSA Identifier GHSA-jj7c-jrv4-c65x
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Plone.namedfile
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 3.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-41048

To remediate this vulnerability, upgrade all affected Plone.namedfile dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

plone.namedfile fixed: 5.6.1
pip install plone.namedfile>=5.6.1
plone.namedfile fixed: 6.0.3
pip install plone.namedfile>=6.0.3
plone.namedfile fixed: 6.1.3
pip install plone.namedfile>=6.1.3
plone.namedfile fixed: 6.2.1
pip install plone.namedfile>=6.2.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show plone.namedfile

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2023-41048, inspect your installed packages using pip:

pip show plone.namedfile

Analyze the terminal output to locate any version of Plone.namedfile in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.6.1), your application is affected.

Note: The pip show plone.namedfile command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Plone.namedfile, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact There is a stored cross site scripting vulnerability for SVG images. A [security hotfix from 2021](https://github.com/plone/Products.PloneHotfix20210518) 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.

CVE-2023-41048 Affected Plone.namedfile Versions

4 component(s)
Fixed Versions:
5.6.16.0.36.1.36.2.1
Product / Package Ecosystem Affected Versions Fixed Version
plone.namedfile
PyPI
< 5.6.1
5.6.1
plone.namedfile
PyPI
≥ 6.0.0
< 6.0.3
6.0.3
plone.namedfile
PyPI
≥ 6.1.0
< 6.1.3
6.1.3
plone.namedfile
PyPI
≥ 6.2.0
< 6.2.1
6.2.1

References

Frequently Asked Questions

What is CVE-2023-41048?
CVE-2023-41048 is a security vulnerability in Plone.namedfile involving plone.namedfile vulnerable to Stored Cross Site Scripting with SVG images under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Plone.namedfile versions are affected?
Affected versions include releases prior to 5.6.1, 6.0.3, 6.1.3, 6.2.1 across affected packages: plone.namedfile.
What version fixes CVE-2023-41048?
Upgrading to 5.6.1, 6.0.3, 6.1.3, 6.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is plone.namedfile affected?
Yes, plone.namedfile is affected in releases prior to 5.6.1, 6.0.3, 6.1.3, 6.2.1. Upgrade your dependency to 5.6.1, 6.0.3, 6.1.3, 6.2.1 or later.
What is the CVSS score of CVE-2023-41048?
CVE-2023-41048 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2023-41048?
CVE-2023-41048 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.).
How can I check PyPI dependencies for CVE-2023-41048?
Run the dependency tree command: 'pip show plone.namedfile'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jj7c-jrv4-c65x",
  "modified" : "2025-04-10T13:29:26Z",
  "published" : "2023-09-21T17:14:58Z",
  "aliases" : [ "CVE-2023-41048" ],
  "summary" : "plone.namedfile vulnerable to Stored Cross Site Scripting with SVG images",
  "details" : "### Impact\nThere is a stored cross site scripting vulnerability for SVG images. A [security hotfix from 2021](https://github.com/plone/Products.PloneHotfix20210518) 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.\n\nNote 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.\n\nAll versions of `plone.namedfile` are impacted.\n\n### Patches\nPatches will be released in various `plone.namedfile` releases:\n\n* 5.6.1 (for Plone 5.2)\n* 6.0.3 (for Plone 6.0.0-6.0.4)\n* 6.1.3 (for Plone 6.0.5-6.0.6)\n* 6.2.1 (for Plone 6.0.7)\n\n### Workarounds\nThere is no workaround.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "plone.namedfile"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.6.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "plone.namedfile"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "plone.namedfile"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.1.0"
      }, {
        "fixed" : "6.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "plone.namedfile"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.2.0"
      }, {
        "fixed" : "6.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/plone/plone.namedfile/security/advisories/GHSA-jj7c-jrv4-c65x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-41048"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/plone/plone.namedfile/commit/188f66a4577021cf8f2bf7c0f5150f9b9573f167"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/plone/plone.namedfile/commit/217d6ce847b7171bf1b73fcb6c08010eb449216a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/plone/plone.namedfile/commit/f0f911f2a72b2e5c923dc2ab9179319cc47788f9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/plone/plone.namedfile/commit/ff5269fb4c79f4eb91dd934561b8824a49a03b60"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/plone/Products.PloneHotfix20210518"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/plone/plone.namedfile"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/plone-namedfile/PYSEC-2023-311.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2023/09/22/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79", "CWE-80" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-21T17:14:58Z",
    "nvd_published_at" : "2023-09-21T15:15:10Z"
  }
}