{"id":"GHSA-mgr9-6c2j-jxrq","aliases":[],"url":"https://o3.security/vulnerability/GHSA-mgr9-6c2j-jxrq","summary":"Pterodactyl has a Reflected XSS vulnerability in “Create New Database Host”","details":"> [!NOTE]\n> Message from the Pterodactyl team:\n>\n> 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.\n>\n> 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.\n\n### Summary\nWhen 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.\n\nTherefore 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.","published":"2025-12-30T15:13:52Z","modified":"2025-12-30T15:37:59.047107Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"pterodactyl/panel","fixedVersion":"1.12.0"}],"fix":{"url":"https://github.com/pterodactyl/panel/commit/1570ff250939b75b3ba8cd03e5025d8293544ed4","label":"pterodactyl/panel@1570ff2"},"references":[{"type":"WEB","url":"https://github.com/pterodactyl/panel/security/advisories/GHSA-mgr9-6c2j-jxrq"},{"type":"WEB","url":"https://github.com/pterodactyl/panel/commit/1570ff250939b75b3ba8cd03e5025d8293544ed4"},{"type":"PACKAGE","url":"https://github.com/pterodactyl/panel"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2025-12-30T15:37:59.047107Z"}}