# CVE-2026-34246: CtrlPanel: Stored XSS in Admin Role Management via Unescaped DataTable HTML Output

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 12% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T21:18:10.081Z
- Modified: 2026-07-24T09:10:00.153Z
- Weaknesses: CWE-80, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

CtrlPanel is open-source billing software for hosting providers. Versions 1.1.1 and prior contain a Stored Cross-Site Scripting (XSS) vulnerability exists in the admin role management interface. In app/Http/Controllers/Admin/RoleController.php, the datatable() method interpolates $role->name and $role->color directly into a <span> element's HTML and style attribute without sanitization, and the chained .rawColumns(['actions', 'name']) call instructs DataTables to render the name column as raw HTML, bypassing automatic output escaping. An admin with role creation or edit permissions can inject a payload such as <img src=x onerror="alert('XSS_POC')"> into the name or color fields, which is persisted to the database and executes in the browser of every admin who loads the /admin/roles page. This enables session hijacking via cookie theft, credential harvesting through fake login prompts or keyloggers, lateral privilege escalation by performing admin actions on behalf of victims, and a persistent backdoor that re-executes on every page load until the malicious role record is removed. This issue has been resolved in version 1.2.0.

(As written by CVE List.)

## Affected

- Ctrlpanel-gg panel: < 1.2.0

## References

- <https://github.com/Ctrlpanel-gg/panel/security/advisories/GHSA-wpqj-xwhq-2mmh> (exploit)
- <https://github.com/Ctrlpanel-gg/panel/releases/tag/1.2.0>

## Sources

- CVE List: [CVE-2026-34246](https://www.cve.org/CVERecord?id=CVE-2026-34246), CVE Terms of Use, modified 2026-05-20
- NVD: [CVE-2026-34246](https://nvd.nist.gov/vuln/detail/CVE-2026-34246), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-34246 · Whole record: https://cve.day/CVE-2026-34246.json · Rebuilt by cve.day 2026-11-25T22:59:21.999Z
