Advisory

GHSA-7pr4-wx9w-mqwr

Also known as: CVE-2026-25491

Summary

Craft CMS Vulnerable to Stored XSS in Entry Types Name

Details

Summary

Stored XSS via Entry Type names. The name is not sanitized when displayed in the Entry Types list.

---
Proof of Concept

Required Permissions (Attacker)

  • Admin access (only admins have access to the settings page)
  • allowAdminChanges is enabled in production, which is against our security recommendations.

Steps to Reproduce

  1. Log in as an attacker.
  2. Go to Settings -> Entry Types (/admin/settings/entry-types).
  3. Create a new Entry Type.
  4. Set Name to:
<img src=x onerror="alert('XSS-EntryTypes')" hidden>
  1. Save the Entry Type, and you’ll be redirected back to the entry types table automatically.
  2. Notice the alert fires when the entry types table renders.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-02-09 20:35 UTC
Modified
2026-02-09 22:56 UTC

Affected packages and fixes

craftcms/cms

Packagist · All systems

Affected

  • introduced 5.0.0-RC1, fixed 5.8.22 (ecosystem)

Fixed versions

5.8.22

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