XSS vulnerability when listing users on add & modify server pagesGHSA-5822-pw57-vv37
GHSA-5822-pw57-vv37 is a security vulnerability in pterodactyl/panel. A fix is available for pterodactyl/panel — see the affected versions and patch details below.
Real-World Exposure
pterodactyl/panel🐘pterodactyl/panelReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Impact
An XSS vulnerability exists in versions of Pterodactyl Panel before 0.7.19. Affected versions do not properly sanitize account names before rendering them to the dropdown selector in the admin area when creating or modifying a server.
Patches
This XSS has been addressed in 0.7.19 and will be rolled forwards into the 1.0-rc.7 release.
Workarounds
No workaround exists without manual patching. See https://github.com/pterodactyl/panel/pull/2441/files for the files changed.
For more information
If you have any questions or comments about this advisory please reach out on Discord, or by emailing dane at pterodactyl dot io.
Thank you to Sergej for the responsible disclosure of this issue.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | pterodactyl/panel | all versions | 0.7.19composer require pterodactyl/panel:^0.7.19 |
| 🐘Packagist | pterodactyl/panel | ≥ 1.0.0-rc.0&&< 1.0.0-rc.7 | 1.0.0-rc.7composer require pterodactyl/panel:^1.0.0-rc.7 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for pterodactyl/panel, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update pterodactyl/panel to 0.7.19 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-5822-pw57-vv37 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is GHSA-5822-pw57-vv37 in your dependencies?
Find it across Packagist, including transitive dependencies.