Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with file-edit permission
-
DeliveryUpload entity/CDATA-encoded SVG payload
-
ExploitBypass name-based sanitizer via unescaped re-serialization
-
ExecutionVictim opens inline-served asset URL
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Penpot before version 2.13.2 contains a path traversal vulnerability in the font creation endpoint that allows authentic
Authenticated command injection in the Penpot SVG exporter prior to 2.18.0 allows a user with edit rights on a design fi
Account takeover in Penpot before 2.14.5 allows an authenticated registered user to hijack any non-blocked profile witho
Server-side request forgery in Penpot before 2.15.0 lets an authenticated file editor coerce the backend into fetching a
Missing authorization on Penpot's ::import-binfile RPC command allows any authenticated user to overwrite arbitrary file
Privilege escalation in Penpot before 2.18.0 lets a non-owner team administrator promote themselves to team owner by cre
Missing authorization checks in Penpot prior to 2.18.0 let a holder of a valid share link read design and shape data fro
Server-side request forgery in Penpot before 2.18.0 allows an authenticated user who controls a media-import URL, or an
Penpot versions prior to 2.18.0 leak the contents of other users' in-progress uploads because the backend assemble-chunk
Logout in Penpot versions prior to 2.18.0 clears the browser's auth-token cookie but leaves the matching server-side ses
Authenticated editors on a Penpot file (prior to version 2.18.0) can delete share links that were created by other users
Stored cross-site scripting in Penpot before 2.18.0 allows an authenticated user holding file-edit permission to upload
EUVD-2026-132835
GHSA-3xr3-gj5w-cwjf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB