Advisory

GHSA-3wxg-w96j-8hq9

Also known as: CVE-2023-33194

Summary

CraftCMS stored XSS in Quick Post widget error message

Details

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

  1. Login at admin
  2. Go to setting
  3. Create a Section
  4. On Entry page, click Edit label
  5. Inject the XSS payload into the label and save
  6. On the admin dashboard choose new widget -> Quick Post
  7. 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

Severity

Low Basis: The source's own band: LOW

Dates

Published
2023-05-26 13:54 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

craftcms/cms

Packagist · All systems

Affected

  • introduced 4.0.0-RC1, fixed 4.4.6 (ecosystem)

Fixed versions

4.4.6

Fix

The export has no generic command for this ecosystem.

craftcms/cms

Packagist · All systems

Affected

  • introduced 3.0.0, fixed 3.8.6 (ecosystem)

Fixed versions

3.8.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences