CVE-2026-133704: Penpot 2.18.0 before 2.18.2 Stored XSS via Namespace-Prefixed SVG Elements
Penpot 2.18.0 before 2.18.2 contains a stored cross-site scripting vulnerability that allows authenticated users with edit rights to bypass the sanitize-svg-element blocklist using namespace-prefixed SVG elements. Attackers can upload SVGs containing elements like x:script or attributes like x:onload, which are served inline as image/svg+xml to run JavaScript in victims' Penpot sessions.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Penpotto a version that resolves this vulnerability.Fixed in 2.18.2
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be authenticated to Penpot and have edit rights that allow them to upload a crafted SVG file. Exploitation also requires a victim to interact with the malicious SVG.
Which deployments are affected?
The affected version range is Penpot 2.18.0 before 2.18.2. The issue applies where uploaded SVG files are served inline as image/svg+xml.
What is the impact on a victim session?
A crafted SVG can execute JavaScript in the context of a victim's Penpot session. The stated impact includes potential compromise of confidentiality and integrity, with no availability impact indicated.