Pterodactyl has a Reflected XSS vulnerability in “Create New Database Host”
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-79.
Summary
> [!NOTE] > Message from the Pterodactyl team: > > The Pterodactyl team has evaluated this as a minor security issue but does not consider it something that should be assigned a CVE, nor does it require active patching by vulnerable systems. > > This issue is entirely self-inflicted and requires an administrative user paste an _obviously_ incorrect value into a database host field, submit it, and run into the XSS when the error message is rendered. However, we have determined that this fix is good security hygiene and may prevent issues in other areas not yet discovered. ### Summary When an administrative user creates a new database host they are prompted to provide a `Host` value which is expected to be a domain or IP address. When an invalid value is encountered and passed back to `gethostaddr` and/or directly to the MySQL connection tooling, an error is returned. This error is then passed back along to the front-end, but was not properly sanitized when rendered. Therefore it is possible for an admin to _knowingly_ paste a malicious payload such as `<script>prompt(document.domain)</script>` into the `Host` field and XSS themselves.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | pterodactyl/panel (Packagist) | before 1.12.0 | 1.12.0 | Patch available | GHSA-mgr9-6c2j-jxrq |
- pterodactyl/panel (Packagist) Vendor— Affected before 1.12.0 Fixed in 1.12.0 Patch available GHSA-mgr9-6c2j-jxrq
Remediation
- Fix · GHSA-mgr9-6c2j-jxrq pterodactyl/panel (Packagist) Fixed in 1.12.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-mgr9-6c2j-jxrq
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences