CVE-2024-8489 CSRF due to overly permissive CORS headers in modelscope/agentscope

High 8.8 Published Updated

Attackers can exploit overly permissive CORS headers to perform CSRF attacks, allowing them to read arbitrary files from the target's local file system.

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-2024-8489?

CVE-2024-8489 is a high-severity vulnerability in modelscope/agentscope, published on 20 Mar 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

A vulnerability in modelscope/agentscope, specifically in the AgentScope Studio backend server, allows for Cross-Site Request Forgery (CSRF) due to overly permissive CORS headers. This issue affects the latest commit on the main branch (21161fe). The vulnerability permits an attacker to access all backend endpoints, including the `api/file` endpoint, enabling the reading of arbitrary files on the target's local file system through CSRF.

Weakness: CWE-352

Which versions are affected by CVE-2024-8489?

How do I fix CVE-2024-8489?

No fix has been published for CVE-2024-8489 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-8489 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8489 exists.

Sources

Also known as GHSA-49rx-72gp-wfgj.

Is CVE-2024-8489 in your software?

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

Check your SBOMs for free