CVE-2024-8556 Stored XSS in modelscope/agentscope
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.
| Package | Affected | Fixed in |
|---|---|---|
agentscope PyPI | All versions to 0.1.1 | None |
agentscope PyPI | All versions to 0.1.1 | None |
agentscope PyPI | All versions to 0.1.1 | None |
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.
Other vulnerabilities in modelscope/agentscope
Sources
Also known as GHSA-6mf6-7j75-2m6f, PYSEC-2026-1076.