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).

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.2%top 84.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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)

VendorProductVersions
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

References