CVE-2025-58361 Promptcraft Forge Studio's incomplete URL check is vulnerable to XSS via SVG
Attackers can execute arbitrary scripts via crafted data URLs due to incomplete URL validation in Promptcraft Forge Studio.
- 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-58361?
CVE-2025-58361 is a critical cross-site scripting vulnerability in MarceloTessaro promptcraft-forge-studio, published on 4 Sep 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
Promptcraft Forge Studio is a toolkit for evaluating, optimizing, and maintaining LLM-powered applications. All versions contain an non-exhaustive URL scheme check that does not protect against XSS. User-controlled URLs pass through src/utils/validation.ts, but the check only strips `javascript:` and a few patterns. `data:` URLs (for example data:image/svg+xml,…) still pass. If a sanitized value is used in href/src, an attacker can execute a script. There is currently no fix for this issue.
Which versions are affected by CVE-2025-58361?
How do I fix CVE-2025-58361?
No fix has been published for CVE-2025-58361 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-58361 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58361 exists.