CVE-2025-52552 FastGPT LastRoute Parameter on Login Page Vulnerable to Open Redirect and DOM-based XSS
Attackers can execute malicious scripts or redirect users via the LastRoute parameter on the login page of FastGPT.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-52552?
CVE-2025-52552 is a medium-severity cross-site scripting vulnerability in labring FastGPT, published on 21 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
FastGPT is an AI Agent building platform. Prior to version 4.9.12, the LastRoute Parameter on login page is vulnerable to open redirect and DOM-based XSS. Improper validation and lack of sanitization of this parameter allows attackers execute malicious JavaScript or redirect them to attacker-controlled sites. This issue has been patched in version 4.9.12.
Which versions are affected by CVE-2025-52552?
It affects 1 product.
Products include Fastgpt Fastgpt.
How do I fix CVE-2025-52552?
No fix has been published for CVE-2025-52552 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-52552 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-52552 exists.
Other vulnerabilities in labring FastGPT
- CVE-2026-34162 FastGPT: Unauthenticated SSRF via httpTools Endpoint Leads to Internal API Key Theft
- CVE-2026-40351 FastGPT: NoSQL Injection in loginByPassword leads to Authentication Bypass
- CVE-2026-33075 FastGPT has Arbitrary Code Execution in GitHub Actions via pull_request_target in fastgpt-preview-image.yml
- CVE-2026-40352 FastGPT: NoSQL Injection in updatePasswordByOld Leads to Account Takeover
- CVE-2026-34163 Server-Side Request Forgery via MCP Tools Endpoint in FastGPT
Sources
Also known as GHSA-r976-rfrv-q24m.