CVE-2025-52552 FastGPT LastRoute Parameter on Login Page Vulnerable to Open Redirect and DOM-based XSS

Medium 5.5 Published Updated

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.

Weakness: CWE-79, CWE-601

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.

Sources

Also known as GHSA-r976-rfrv-q24m.

Is CVE-2025-52552 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free