3.7low
CraftCMS stored XSS in Quick Post widget error message
- Severity
- 3.7low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.62% (higher than 50% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3wxg-w96j-8hq9
Description
Craft is a CMS for creating custom digital experiences on the web.The platform does not filter input and encode output in Quick Post validation error message, which can deliver an XSS payload. Old CVE fixed the XSS in label HTML but didn’t fix it when clicking save. This issue was patched in version 4.4.6.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| craftcms cms | >= 4.0.0-RC1, < 4.4.6, >= 3.0.0, <= 3.8.5 | CVE List |
| craftcms/cms (Packagist) | from 4.0.0-RC1 before 4.4.6, from 3.0.0 before 3.8.6 | GitHub Advisory Database |
| craftcms craft_cms | from 3.0.0 before 3.8.6, from 4.0.1 before 4.4.6 | NVD |
| craftercms craftercms | 4.0.0 | NVD |
All scores
| GitHub_M | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:L |
| GitHub | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:L |
| NVD | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
Classification
What each source says
CVE List
Craft is a CMS for creating custom digital experiences on the web.The platform does not filter input and encode output in Quick Post validation error message, which can deliver an XSS payload. Old CVE fixed the XSS in label HTML but didn’t fix it when clicking save. This issue was patched in version 4.4.6.
GitHub Advisory Database
Summary
The platform does not filter input and encode output in Quick Post validation error message, which can deliver an XSS payload.
Details
Old CVE fixed the XSS in label HTML but didn’t fix it when clicking save.
PoC
-
Login at admin
-
Go to setting
-
Create a Section
-
On Entry page, click Edit label
-
Inject the XSS payload into the label and save
-
On the admin dashboard choose new widget -> Quick Post
-
In Quick Post, click save with blank slug; The XSS will be executed
"errors":{"title":["<script>alert('nono')</script> cannot be blank."],"slug":["Slug cannot be blank."]
Fixed in https://github.com/craftcms/cms/commit/9d0cd0bda7c8a830a3373f8c0f06943e519ac888
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-33194 changed 2025-01-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3wxg-w96j-8hq9 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-33194 changed 2026-06-17 | Public domain |