CVE-2025-58353

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

State
Published
Severity
8.2 High
Published
Sep 4, 2025
Updated
Sep 4, 2025
Reserved
Aug 29, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:NGitHub_M

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-20 Improper Input Validation
  • CWE-184 Incomplete List of Disallowed Inputs

Affected Products

ProductVersions
promptcraft-forge-studioMarceloTessaro
  • >= 0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.