{"id":"CVE-2022-37248","aliases":["CVE-2022-37248","GHSA-wxvf-839f-jqmh"],"related":[],"kind":"vulnerability","state":"published","title":"Craft CMS Cross site Scripting vulnerability","summary":"Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via src/helpers/Cp.php.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via src/helpers/Cp.php.","source":"cvelist"},{"lang":"en","text":"Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via `src/helpers/Cp.php`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Craft CMS versión 4.2.0.1, es vulnerable a un ataque de tipo Cross Site Scripting (XSS) por medio del archivo src/helpers/Cp.php","source":"nvd"}],"published":"2022-09-16T15:09:46.000Z","modified":"2026-06-17T04:54:48.000Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0-RC1","status":"affected","fixed":"4.2.1"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"status":"affected","version":"4.2.0.1"}],"vendor":"craftcms","product":"craft_cms","cpe":"cpe:2.3:a:craftcms:craft_cms:4.2.0.1:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/craftcms/cms/commit/cedeba0609e4b173cd584dae7f33c5f713f19627","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://labs.integrity.pt/advisories/cve-2022-37248/","tags":["exploit","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37248","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/blob/3.7.55.1/src/helpers/Cp.php","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/blob/4.0.0-RC1/src/helpers/Cp.php","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#421---2022-08-09","tags":["web"],"sources":["ghsa"]},{"url":"https://labs.integrity.pt/advisories/cve-2022-37248","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-37248","url":"https://www.cve.org/CVERecord?id=CVE-2022-37248","licence":"CVE Terms of Use","modified":"2024-08-03T10:29:20.735Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wxvf-839f-jqmh","url":"https://github.com/advisories/GHSA-wxvf-839f-jqmh","licence":"CC-BY-4.0","modified":"2024-02-16T08:23:36.812Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-37248","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37248","licence":"Public domain","modified":"2026-06-17T04:54:48.000Z"}],"updatedAt":"2026-11-25T22:58:15.010Z","epss":{"score":0.0067,"percentile":0.53265,"date":"2026-12-01T12:00:22.000Z"}}