Read the docs

Penpot Stored XSS via Namespace-Prefixed SVG Elements

Priority MEDIUM 56CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

Penpot from 2.18.0 before 2.18.2 contains a stored cross-site scripting flaw (CWE-79) in its SVG sanitizer. The sanitize-svg-element blocklist can be bypassed with namespace-prefixed SVG elements such as x:script or attributes such as x:onload. An authenticated user with edit rights can upload such an SVG, which the server serves inline, running JavaScript in victims' Penpot sessions.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0032 17th percentileScored 2026-11-30
Fix Fixed penpot (penpot): 2.18.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
penpotpenpot2.18.0 to before 2.18.22.18.2Patch availableCNA
  • penpot Vendorpenpot Affected 2.18.0 to before 2.18.2 Fixed in 2.18.2 Patch available CNA

Remediation

Upgrade Penpot to version 2.18.2 or later.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA penpot (penpot) Fixed in 2.18.2

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-133704
  2. 2026-11-20 Alias added: GHSA-f5h5-c9gp-6c5r
  3. 2026-11-20 CISA SSVC decision points changed

References

  • TI-2026-68335 OS command injection in Penpot SVG exporter via fill color CVSS 3.1CRITICAL 9.9
  • TI-2026-32845 Penpot: Pre-authenticated account takeover via team-invitation token + prepare-register-profile CVSS 3.1CRITICAL 9.9
  • TI-2026-35172 Penpot: Stored XSS via comment content, innerHTML renders unsanitized HTML CVSS 3.1HIGH 8.7
  • TI-2026-33540 Penpot: MCP REPL server binds to 0.0.0.0 with unauthenticated /execute endpoint — RCE CVSS 3.1HIGH 8.8
  • TI-2026-14441 Missing authorization in Penpot CVSS 3.1HIGH 7.5
  • TI-2026-33541 Penpot: Authenticated SSRF in remote image import via create-file-media-object-from-url CVSS 3.1HIGH 7.7
See all 20 →

Sources