CVE-2025-58353
JSON

8.2high

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

Severity
8.2high CVSS:3.1 by GitHub_M
Exploit likelihood
0.47% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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

Product or packageVersionsReported by
MarceloTessaro promptcraft-forge-studio>= 0CVE List

Classification

CWE-20CWE-79CWE-184

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-58353 changed 2025-09-04CVE Terms of Use
NVDCVE-2025-58353 changed 2026-06-17Public domain