Advisory

GHSA-6qjx-787v-6pxr

Also known as: CVE-2023-33197

Summary

Craft CMS stored XSS in indexedVolumes

Details

Summary
XSS can be triggered via the Update Asset Index utility

PoC

  1. Access setting tab
  2. Create new assets
  3. In assets name inject payload: "<script>alert(26)</script>
  4. Click Utilities tab
  5. Choose all volumes, or volume trigger xss
  6. Click Update asset indexes.

XSS will be triggered

Json response volumes name makes triggers the payload

"session":{"id":1,"indexedVolumes":{"1":"\"<script>alert(26)</script>"},

It’s run on every POST request in the utility.

Resolved in https://github.com/craftcms/cms/commit/8c2ad0bd313015b8ee42326af2848ee748f1d766

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-05-26 13:56 UTC
Modified
2026-09-10 03:50 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.

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