Skip to main content

Penpot CVE-2026-134828

| EUVDEUVD-2026-132835 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-22 VulnCheck GHSA-3xr3-gj5w-cwjf
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with file-edit permission
  2. Delivery
    Upload entity/CDATA-encoded SVG payload
  3. Exploit
    Bypass name-based sanitizer via unescaped re-serialization
  4. Execution
    Victim opens inline-served asset URL
  5. Impact
    Execute JavaScript in Penpot origin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated user holding file-edit permission on a Penpot file (an ordinary collaborator on a shared/team file, PR:L) who uploads a crafted SVG via the media-object upload path (also reachable via the unsanitized thumbnail and organization-logo writers). The payload must hide script in an entity-encoded text node, a CDATA-wrapped node, or an attribute-quote breakout so the name-based filter passes it and the unescaped re-serializer emits live markup. Exploitation further requires the victim to open the stored asset URL as a top-level navigation (UI); an in-app <img src> does not execute SVG script. Critically, a stock deployment IS exploitable because PENPOT_CSP_MODE defaults to 'report-only' and public SVG buckets are served inline (Content-Disposition is conditional, not unconditional); setting PENPOT_CSP_MODE=enforce blocks the script-execution step. Installs patched only to 2.18.4 remain vulnerable because the sanitizer is byte-identical there.

Impact

This is a genuine but moderate-priority issue, not a drop-everything emergency, and the signals are internally consistent. The source-provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N, score 5.1 Medium) describes a network-reachable but privilege- and interaction-gated stored XSS: an attacker needs PR:L (an authenticated user with file-edit permission) and the victim must perform an action (open the asset), which is why impact is capped at Low across confidentiality and integrity. The vuln.today decision label is 'this_month', consistent with a Medium-severity flaw rather than act_now/emergency. There is no CISA KEV listing and no EPSS score in the provided data, so there is no evidence of active or widespread exploitation - this should be treated as 'no public exploit identified as active' rather than in-the-wild. However, the GHSA advisory documents a full end-to-end reproduction with three working payloads verified in a real browser, so the technical barrier to weaponization is low. A notable risk amplifier is in the evidence: a stock Penpot deployment ships with PENPOT_CSP_MODE defaulting to 'report-only', meaning the injected script actually executes by default; this makes real-world impact higher than the raw score suggests for unhardened installs. A mitigating nuance: this is an incomplete fix of CVE-2026-105694, so environments that believed they were patched at 2.18.4 are still vulnerable (the sanitizer is byte-identical). Net: real, defender-actionable, prioritize within normal patch cycles, but gated by authentication and user interaction.

Exploit ScenarioDerived

An ordinary collaborator with edit access to a shared Penpot file uploads an SVG whose malicious markup is hidden in an entity-encoded or CDATA text node (or an attribute-quote breakout); the name-based sanitizer passes it and re-serializes it without escaping, producing a live <script>/onload in the stored, inline-served file. When another team member opens that asset URL as a top-level navigation, the script runs in Penpot's origin and can act as the victim across the RPC surface (read/modify files, teams, and secrets). A public PoC reference exists in the GHSA advisory - three payloads reproduced end-to-end in a real browser - though it is not published as standalone drop-in exploit code; network vector with low attack complexity makes crafting the payload straightforward.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 22, 2026

Stored cross-site scripting in Penpot's SVG upload path lets a user with file-edit permission store an SVG that still contains live script after the sanitizer runs, which then executes in the Penpot origin when a victim opens the asset URL directly. The flaw is an incomplete fix of CVE-2026-105694: the name-based blocklist is applied to a SAX-parsed tree, but re-serialization uses clojure.xml/emit, which performs no XML escaping, so entity-encoded or CDATA-wrapped text and attribute-quote breakouts survive as live <script> or onload= markup. Affected are versions before 2.19.1 (the sanitizer is byte-identical at 2.18.4, so patching only to that release leaves installs exposed); a vendor fix ships in 2.19.1, the upstream advisory documents an end-to-end browser-confirmed proof of concept, and exploitation requires the victim to navigate to the asset as a top-level document, so severity is moderate rather than urgent, with stock deployments exploitable because PENPOT_CSP_MODE defaults to report-only and public SVG buckets are served inline.

RemediationAI

Upgrade to Penpot 2.19.1, which is the vendor-released patch: PR https://github.com/penpot/penpot/pull/12887 (merge commit 4874da450f1e1f055e44109ef451ef0452f0bcea) replaces clojure.xml/emit with a serializer that escapes text and attribute values, routes both thumbnail writers and the organization-logo upload through sanitize-svg-upload, tracks SVG namespace bindings, and normalizes javascript: scheme detection. Because the sanitizer is byte-identical at 2.18.4, upgrading to that intermediate release is not sufficient. Where 2.19.1 cannot be deployed immediately, the specific compensating control called out by the advisory is setting PENPOT_CSP_MODE=enforce, which blocks the script-execution step; stock deployments default to report-only, which only reports violations and does not prevent execution, so enabling enforce requires validating that the stricter policy does not break existing inline asset rendering in your front end. As further defense in depth the advisory recommends serving user-uploaded content with an unconditional Content-Disposition: attachment header (the shipped code applies it only to non-public assets) or serving uploads from a separate sandbox origin, both of which stop top-level SVG rendering but may change how assets are consumed by clients. Restricting file-edit permission to trusted collaborators reduces exposure since exploitation requires that permission, but it does not address the underlying serialization flaw.

Affected VersionsENISA

penpot 2.18.0 <2.19.1

Affected Packages

euvd penpot fix: 2.19.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Penpot's backend is written in Clojure, and app.media.svg/sanitize-svg parses an uploaded SVG with clojure.xml/parse on a hardened, XXE-safe SAX parser, drops dangerous elements and attributes by name (script, foreignObject, animate*, on* attributes, javascript: hrefs), and then writes the tree back with clojure.xml/emit. Two properties of that pipeline combine badly: the SAX characters callback delivers text after entity and CDATA decoding, so encoded markup is invisible to a name-based filter; and clojure.xml/emit in Clojure 1.12.6 prints attribute values and text without escaping ' " < > &, so the decoded payload is re-created as live markup in the stored file. That is CWE-79 arising not from a missing blocklist entry but from the structural mistake of placing a name-only filter in front of a non-escaping emitter. The same advisory identifies a sibling writer, the ::create-file-object-thumbnail RPC in files_thumbnails.clj, which validates the media type, checks only file-edition permission and stores the bytes to the public file-object-thumbnail bucket with no sanitizer at all, while the corresponding process-main-image path does sanitize; a third unsanitized writer, ::upload-organization-logo in nitrate.clj, stores SVG raw to the public organization bucket but sits behind shared-key-auth (PR:H). Compounding the impact, public buckets are served inline and unauthenticated in http/assets.clj, with Content-Disposition: attachment applied only when the asset is not public, and the bundled nginx image defaults PENPOT_CSP_MODE to report-only, so a stock deployment executes the stored script in-origin. The 2.19.1 fix replaces the emitter with an escaping serializer that writes entity-escaped text and attribute values, tracks namespace bindings so non-SVG-namespace subtrees are dropped, extends the blocklist with iframe/meta/embed/link/base, and normalizes the URL scheme comparison so tab/CR/LF-split javascript: schemes cannot slip through.

Know when Penpot gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

File-edit permission gives PR:L, victim must open the asset so UI:R; script runs in Penpot's origin acting on the victim's session, so S:C with limited C:L/I:L and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

Penpot 2.18.0 before 2.19.1 contains a stored cross-site scripting vulnerability in the sanitize-svg function that allows authenticated users to bypass filtering through unescaped re-serialization. Attackers with file edit permission can upload SVGs using entity-encoded or CDATA-wrapped markup or attribute quote breakouts to execute JavaScript in the Penpot origin when victims open them.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Low
niche open-source design-collaboration tool, limited enterprise production footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Penpot

View all
CVE-2026-26202 HIGH POC
7.5 Feb 19

Penpot before version 2.13.2 contains a path traversal vulnerability in the font creation endpoint that allows authentic

CVE-2026-105691 CRITICAL
9.9 Oct 05

Authenticated command injection in the Penpot SVG exporter prior to 2.18.0 allows a user with edit rights on a design fi

CVE-2026-44986 CRITICAL
9.9 Jul 15

Account takeover in Penpot before 2.14.5 allows an authenticated registered user to hijack any non-blocked profile witho

CVE-2026-45806 HIGH
7.7 Jul 15

Server-side request forgery in Penpot before 2.15.0 lets an authenticated file editor coerce the backend into fetching a

CVE-2026-17613 HIGH
7.5 Aug 05

Missing authorization on Penpot's ::import-binfile RPC command allows any authenticated user to overwrite arbitrary file

CVE-2026-105688 MEDIUM
6.7 Oct 05

Privilege escalation in Penpot before 2.18.0 lets a non-owner team administrator promote themselves to team owner by cre

CVE-2026-105696 MEDIUM
6.5 Oct 05

Missing authorization checks in Penpot prior to 2.18.0 let a holder of a valid share link read design and shape data fro

CVE-2026-105689 MEDIUM
6.0 Oct 05

Server-side request forgery in Penpot before 2.18.0 allows an authenticated user who controls a media-import URL, or an

CVE-2026-105695 MEDIUM
5.9 Oct 05

Penpot versions prior to 2.18.0 leak the contents of other users' in-progress uploads because the backend assemble-chunk

CVE-2026-105690 MEDIUM
5.9 Oct 05

Logout in Penpot versions prior to 2.18.0 clears the browser's auth-token cookie but leaves the matching server-side ses

CVE-2026-105692 MEDIUM
5.4 Oct 05

Authenticated editors on a Penpot file (prior to version 2.18.0) can delete share links that were created by other users

CVE-2026-105694 MEDIUM
5.4 Oct 05

Stored cross-site scripting in Penpot before 2.18.0 allows an authenticated user holding file-edit permission to upload

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy