Vulnerability · Published Sep 4, 2025 · Assigned by GitHub_M
CVE-2025-58353Promptcraft Forge Studio: Complete Sanitizer Bypass Enables XSS via Overlapping Patterns
High 8.2
In plain English
A high-severity cross-site scripting in promptcraft-forge-studio from MarceloTessaro. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities).
Official description
Promptcraft Forge Studio is a toolkit for evaluating, optimizing, and maintaining LLM-powered applications. All versions of Promptcraft Forge Studio sanitize user input using regex blacklists such as r`eplace(/javascript:/gi, '')`. Because the package uses multi-character tokens and each replacement is applied only once, removing one occurrence can create a new dangerous token due to overlap. The “sanitized” value may still contain an executable payload when used in href/src (or injected into the DOM). There is currently no fix for this issue.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MarceloTessaro | promptcraft-forge-studio | >= 0 |
Weakness: CWE-79, CWE-20, CWE-184 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N