High severity · published Sep 4, 2025
CVE-2025-58353
Promptcraft Forge Studio: Complete Sanitizer Bypass Enables XSS via Overlapping Patterns
8.2
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 15% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PR
promptcraft-forge-studio · MarceloTessaro
>= 0 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-58353
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-58353
github.com
https://github.com/MarceloTessaro/promptcraft-forge-studio/security/advisories/GHSA-mv25-7v95-q3pf
More from promptcraft-forge-studio
9.3
CVE-2025-58361
Promptcraft Forge Studio's incomplete URL check is vulnerable to XSS via SVG
