CVE-2024-8556 Stored XSS in modelscope/agentscope

Medium 6.1 Published Updated

Attackers can inject malicious JavaScript via run IDs in AgentScope, leading to arbitrary code execution in the victim's browser.

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-8556?

CVE-2024-8556 is a medium-severity cross-site scripting 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 stored cross-site scripting (XSS) vulnerability exists in modelscope/agentscope, as of the latest commit 21161fe on the main branch. The vulnerability occurs in the view for inspecting detailed run information, where a user-controllable string (run ID) is appended and rendered as HTML. This allows an attacker to execute arbitrary JavaScript code in the context of the user's browser.

Weakness: CWE-79

Which versions are affected by CVE-2024-8556?

3 open source packages ship an affected version, including agentscope. It affects 1 product.

PackageAffectedFixed in
agentscope PyPIAll versions to 0.1.1None
agentscope PyPIAll versions to 0.1.1None
agentscope PyPIAll versions to 0.1.1None

Products include Modelscope Agentscope.

How do I fix CVE-2024-8556?

No fix has been published for CVE-2024-8556 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-2024-8556 being exploited?

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

Sources

Also known as GHSA-6mf6-7j75-2m6f, PYSEC-2026-1076.

Is CVE-2024-8556 in your software?

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

Check your SBOMs for free