CVE-2025-57203: MagicProject AI - Stored XSS
- Cve: CVE-2025-57203
- Name: MagicProject AI - Stored XSS
- Description: MagicProject AI version 9.1 is affected by a Cross-Site Scripting (XSS) vulnerability within the chatbot generation feature available to authenticated admin users. The vulnerability resides in the prompt parameter submitted to the /dashboard/user/generator/generate-stream endpoint via a multipart/form-data POST request. Due to insufficient input sanitization, attackers can inject HTML-based JavaScript payloads. This payload is stored and rendered unsanitized in subsequent views, leading to execution in other users' browsers when they access affected content. This issue allows an authenticated attacker to execute arbitrary JavaScript in the context of another user, potentially leading to session hijacking, privilege escalation, data exfiltration, or administrative account takeover. The application does not implement a Content Security Policy (CSP) or adequate input filtering to prevent such attacks. A fix should include proper sanitization, output encoding, and strong CSP enforcement to mitigate exploitation.
- Impact: Authenticated attackers can execute arbitrary JavaScript in other users' browsers, leading to session hijacking, privilege escalation, or account takeover.
- Remediation: Apply proper input sanitization, output encoding, and implement a strong Content Security Policy (CSP).
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec, privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker must be an authenticated admin user
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00237
- Epss percentile: 0.1467
- Assignee: [email protected]
- Published at: 2025-09-22T20:15:38Z
- Age in days: 428
- Modified at: 2026-11-05T23:10:00Z
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-57203
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://codecanyon.net/item/magicai-openai-content-text-image-chat-code-generator-as-saas/45408109 | nvd | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| liquidlabs:magicai | = 9.1 | no | nvd | /v1/products/liquidlabs/magicai |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts