{"answers":{"affected":"9 open source packages ship an affected version, including plone.namedfile and plone-namedfile. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-41048 in the wild and no public exploit code.","fix":"Upgrade plone.namedfile to a fixed version for your release line: 5.6.1, 6.0.3, 6.1.3 or 6.2.1.","what":"CVE-2023-41048 is a low-severity cross-site scripting vulnerability in plone.namedfile, published on 21 Sep 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-41048 and fix it if it is affected.\n\nWhat it is: CVE-2023-41048 is a low-severity cross-site scripting vulnerability in plone.namedfile, published on 21 Sep 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-41048 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- plone.namedfile (PyPI): affected all versions; fixed in 5.6.1\n- plone.namedfile (PyPI): affected from 6.0.0; fixed in 6.0.3\n- plone.namedfile (PyPI): affected from 6.1.0; fixed in 6.1.3\n- plone.namedfile (PyPI): affected from 6.2.0; fixed in 6.2.1\n- plone-namedfile (PyPI): affected all versions; fixed in 5.6.1, 6.0.3, 6.1.3\n- plone-namedfile (PyPI): affected all versions; fixed in 5.6.1\n- plone-namedfile (PyPI): affected from 6.0.0; fixed in 6.0.3\n- plone-namedfile (PyPI): affected from 6.1.0; fixed in 6.1.3\n- plone-namedfile (PyPI): affected from 6.2.0; fixed in 6.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-41048/ (Markdown: https://insights.sbomify.com/CVE-2023-41048/index.md)","id":"CVE-2023-41048","markdown":"https://insights.sbomify.com/CVE-2023-41048/index.md","name":"CVE-2023-41048","record":{"aliases":["GHSA-jj7c-jrv4-c65x","PYSEC-2023-311"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Plone namedfile library","requires_auth":"low_privilege","summary":"Stored XSS in plone.namedfile allows attackers to execute scripts via crafted SVG image scales, requiring user interaction.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"namedfile","vendor":"plone"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"plone.namedfile vulnerable to Stored Cross Site Scripting with SVG images","id":"CVE-2023-41048","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":9,"n_references":7,"next":{"headline":"Improper Neutralization of Script in Attributes in @dcl/single-sign-on-client","id":"CVE-2023-41049"},"packages":[{"ecosystem":"PyPI","fixed":["5.6.1","6.0.3","6.1.3"],"introduced":["0","6.0.0","6.1.0"],"last_affected":[],"package":"plone-namedfile","purl":"pkg:pypi/plone-namedfile","source":"PYSEC-2023-311"},{"ecosystem":"PyPI","fixed":["5.6.1"],"introduced":["0"],"last_affected":[],"package":"plone-namedfile","purl":"pkg:pypi/plone-namedfile","source":"GHSA-jj7c-jrv4-c65x"},{"ecosystem":"PyPI","fixed":["6.0.3"],"introduced":["6.0.0"],"last_affected":[],"package":"plone-namedfile","purl":"pkg:pypi/plone-namedfile","source":"GHSA-jj7c-jrv4-c65x"},{"ecosystem":"PyPI","fixed":["6.1.3"],"introduced":["6.1.0"],"last_affected":[],"package":"plone-namedfile","purl":"pkg:pypi/plone-namedfile","source":"GHSA-jj7c-jrv4-c65x"},{"ecosystem":"PyPI","fixed":["6.2.1"],"introduced":["6.2.0"],"last_affected":[],"package":"plone-namedfile","purl":"pkg:pypi/plone-namedfile","source":"GHSA-jj7c-jrv4-c65x"},{"ecosystem":"PyPI","fixed":["5.6.1"],"introduced":["0"],"last_affected":[],"package":"plone.namedfile","purl":null,"source":"GHSA-jj7c-jrv4-c65x"},{"ecosystem":"PyPI","fixed":["6.0.3"],"introduced":["6.0.0"],"last_affected":[],"package":"plone.namedfile","purl":null,"source":"GHSA-jj7c-jrv4-c65x"},{"ecosystem":"PyPI","fixed":["6.1.3"],"introduced":["6.1.0"],"last_affected":[],"package":"plone.namedfile","purl":null,"source":"GHSA-jj7c-jrv4-c65x"},{"ecosystem":"PyPI","fixed":["6.2.1"],"introduced":["6.2.0"],"last_affected":[],"package":"plone.namedfile","purl":null,"source":"GHSA-jj7c-jrv4-c65x"}],"prev":{"headline":"Improper Neutralization of Special Elements Used in a Template Engine in OctoPrint","id":"CVE-2023-41047"},"products":["plone.namedfile"],"published":"2023-09-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["plone"]},"summary":"Stored XSS in plone.namedfile allows attackers to execute scripts via crafted SVG image scales, requiring user interaction.","url":"https://insights.sbomify.com/CVE-2023-41048/"}