CVE-2025-58353CWE-184CWE-20CWE-79

Promptcraft Forge Studio: Complete Sanitizer Bypass Enables XSS via Overlapping Patterns

High · published September 4, 2025

CVSS v3.1
8.2
EPSS
0%
Percentile
14.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.2 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00241 · 14.4th percentile
Weaknesses
CWE-184 · Incomplete List of Disallowed Inputs; CWE-20 · Improper Input Validation; CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2025-09-04T19:39Z
EPSS history
Timeline
  • 04 SEP 19:39Z
    Promptcraft Forge Studio: Complete Sanitizer Bypass Enables XSS via Overlapping Patterns
    cvelistv5