{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-37251","id":"CVE-2022-37251","title":"Craft CMS vulnerable to Cross-site Scripting via entry revisions and drafts","description":"Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via Drafts.","descriptionLong":"Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via Drafts.","published":"2022-09-16T20:54:16.000Z","updated":"2026-10-28T02:30:52.440363246Z","reserved":"2022-08-01T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"craftcms/cms","purl":"pkg:composer/craftcms/cms","ranges":[">=3.7.0-beta.1 <3.7.55.2",">=4.0.0-RC1 <4.2.1"],"fixed":["3.7.55.2","4.2.1"],"advisory":"GHSA-mw37-wx8p-gp45"}],"cwes":["CWE-79"],"aliases":["GHSA-mw37-wx8p-gp45"],"references":[{"url":"https://labs.integrity.pt/advisories/cve-2022-37251/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/37xxx/CVE-2022-37251.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37251","tags":["advisory"]},{"url":"https://github.com/craftcms/cms/commit/7139213dbd9e177a3528aac8e2db8de91830f118","tags":["web"]},{"url":"https://github.com/craftcms/cms/commit/919c9074ff8596bf30a629b0888c529793e9a903","tags":["web"]},{"url":"https://github.com/craftcms/cms/commit/f0d9b8a1e3ac005a2418f7d3d9059b49a96e73ea","tags":["web"]},{"url":"https://github.com/craftcms/cms","tags":["package"]},{"url":"https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#421---2022-08-09","tags":["web"]},{"url":"https://labs.integrity.pt/advisories/cve-2022-37251","tags":["web"]},{"url":"http://craft.com","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00512,"epssPercentile":0.44445,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-37251","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37251","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-37251","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mw37-wx8p-gp45","ok":true,"note":"GHSA-mw37-wx8p-gp45"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-37251","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}