{"id":"GHSA-4vm8-j95f-j6v5","summary":"Strapi 4.1.12 Cross-site Scripting via crafted file","details":"An unrestricted file upload vulnerability in the Add New Assets function of Strapi v4.1.12 allows attackers to execute arbitrary code via a crafted file. After an authenticated attacker uploads a file containing a malicious URL, a victim copies and pastes the malicious URL into a new tab to receive the XSS payload.","aliases":["CVE-2022-32114"],"modified":"2024-03-21T17:36:58Z","published":"2022-07-14T00:00:16Z","database_specific":{"nvd_published_at":"2022-07-13T21:15:00Z","cwe_ids":["CWE-434","CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-08-06T09:34:01Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32114"},{"type":"WEB","url":"https://docs.strapi.io/dev-docs/configurations/public-assets"},{"type":"WEB","url":"https://docs.strapi.io/user-docs/users-roles-permissions/configuring-administrator-roles"},{"type":"WEB","url":"https://github.com/bypazs/strapi"},{"type":"PACKAGE","url":"https://github.com/strapi/strapi"},{"type":"WEB","url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/content-type-builder/admin/src/components/AllowedTypesSelect/index.js#L14"},{"type":"WEB","url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/upload/admin/src/components/MediaLibraryInput/index.js#L33"},{"type":"WEB","url":"https://grimthereaperteam.medium.com/strapi-v4-1-12-unrestricted-file-upload-b993bfd07e4e"}],"affected":[{"package":{"name":"@strapi/strapi","ecosystem":"npm","purl":"pkg:npm/%40strapi/strapi"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"4.1.12"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-4vm8-j95f-j6v5/GHSA-4vm8-j95f-j6v5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N"}]}