Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister/login as edit-rights user
-
DeliveryUpload namespace-prefixed <x:script> SVG
-
ExploitBypass sanitize-svg-element blocklist
-
ExecutionShare file and lure victim to asset URL
-
PersistExecute JS in Penpot origin with victim session
-
ImpactSteal CSRF token and take over account
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 | Exploitation requires: (1) an authenticated Penpot account with edit rights on a file - the advisory notes every registered user can create their own file (PR:L); (2) crafting an SVG that uses an XML namespace prefix bound to the SVG (or xlink) namespace, e.g. <x:script> or x:onload, so clojure.xml interns it as :x:script and the sanitize-svg-element blocklist (which compares qualified keywords) fails to recognize it as dangerous; (3) the asset being served inline because file-media-object is in public-buckets, so no content-disposition:attachment header is applied, the content type is image/svg+xml, and no Content-Security-Policy is set (only X-Content-Type-Options: nosniff); and (4) a victim with a valid session actively opening the asset URL top-level (UI:P/Passive) rather than embedded in an <img> context. Limiting factors that reduce real-world risk: attacker must already authenticate with edit rights, must induce victim interaction (open the direct asset URL), and the instance must run the vulnerable 2.18.0/2.18.1 range; patched 2.18.2 instances are not affected. |
| Impact | This is a moderate-severity, authenticated stored XSS (CWE-79) in the Penpot SVG sanitizer, rated CVSS 4.0 5.1 by the vendor. The 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) signals a network-reachable but privilege- and interaction-gated flaw: the attacker must hold a registered account with edit rights (PR:L) and a victim must actively open the malicious asset URL (UI:P/Passive), which caps automated, worm-like spread. No EPSS score was supplied, so statistical exploitation probability cannot be stated, and the CVE is NOT in CISA KEV - there is no evidence of active in-the-wild exploitation. Counterbalancing the gated vector, the GHSA advisory publishes a complete, independently-reproduced proof of concept (docker-compose stack, end-to-end Python script, payload SVG, and logs showing 3/3 successful executions), so the bug is confirmed trivially exploitable in a lab and the vendor describes the outcome as a full account-takeover primitive (reading the CSRF token, calling the authenticated RPC API, changing password/email, minting access tokens, exfiltrating board data, pivoting to teammates). The vuln.today decision label is 'this_month', not act_now/emergency - consistent with a real but prioritizable issue rather than a drop-everything emergency. Net: a genuine priority for any self-hosted Penpot instance where untrusted or lower-trust users share files, but the PR:L and UI:P requirements plus absence of KEV/EPSS mean it is targeted-collaboration abuse, not mass unauthenticated compromise. |
| Exploit ScenarioDerived | An attacker registers (or already holds) a normal Penpot account with edit rights, crafts an SVG containing a namespace-prefixed script element such as <x:script> bound to the SVG namespace to slip past the sanitize-svg-element blocklist, and uploads it as file media. They then share the file/board (project invite, team membership, or public share link) and lure a victim into opening the asset URL (e.g. /assets/by-file-media-id/<id>) directly, where the browser renders it as image/svg+xml and runs the attacker's JavaScript in the Penpot origin under the victim's session. A fully working, independently reproduced proof of concept - docker-compose stack, end-to-end script, payload, and 3/3 success logs - is published in the vendor's GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Stored cross-site scripting in Penpot 2.18.0 through 2.18.1 allows any authenticated user with edit rights on a file to execute JavaScript in a victim's Penpot session by uploading an SVG whose dangerous elements or attributes are written with an XML namespace prefix (for example <x:script> or x:onload) so the server-side sanitizer fails to strip them. The crafted asset is served inline as image/svg+xml on the Penpot origin, so a victim who opens the direct asset URL top-level runs the attacker's script with their own session, which is an account-takeover primitive on the instance. A public PoC reference exists (advisory-attached harness, payload and reproduction logs); it is not verified as working exploit code, and there is no confirmed active exploitation (CISA KEV) at time of analysis. Vendor CVSS 4.0 score is 5.1, and the assigned decision label is this_month rather than act_now.
RemediationAI
Vendor-released patch: upgrade Penpot to 2.18.2, which contains commit 238a4d8613d4799b92eab0e38e5194fb72dc116d that switches SVG sanitization from qualified tag/attribute keywords to local-name matching; see the advisory at https://github.com/penpot/penpot/security/advisories/GHSA-82p2-67qr-4rwf and the release at https://github.com/penpot/penpot/releases/tag/2.18.2. Upgrading is the only complete fix, since the bypass is inside the sanitizer itself. The advisory also lists defence-in-depth measures for operators who cannot upgrade immediately: serve user-uploaded SVG media from the asset route with Content-Disposition: attachment, and/or add a Content-Security-Policy such as default-src 'none'; style-src 'unsafe-inline'; sandbox on that route; the trade-off is that forcing attachment downloads or a restrictive CSP on the asset route can break inline preview of legitimate uploaded images in the Penpot UI until the headers are scoped correctly, and both measures only reduce script execution on the asset URL rather than repairing the sanitizer, so any other path that renders sanitized SVG can remain exposed. Deployments on 2.18.0 or 2.18.1 should be inventoried as a prerequisite for exploitation is an authenticated account with edit rights plus a victim opening the direct asset URL.
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 sanitizes uploaded SVGs server-side in backend/src/app/media/svg.clj using sanitize-svg-element, which parses the document with clojure.xml and blocklists dangerous tags by comparing the parsed tag keyword against a set such as {:script :foreignObject :set :animate ...}. clojure.xml interns keys from the qualified name including the prefix, so <x:script> where x is bound to the SVG namespace parses as :x:script and is not matched; the same holds for foreignObject, set, animate* and for prefixed event attributes such as x:onload. This is the CWE-79 (stored XSS) root cause, with the advisory also classifying it under CWE-20 improper input validation. The bypass is exploitable because the stored object is a file-media-object listed in public-buckets (backend/src/app/http/assets.clj), so content-disposition: attachment is not applied, the object is served with content type image/svg+xml, and the release nginx config supplies X-Content-Type-Options: nosniff but no Content-Security-Policy (open issue #11111). When the asset URL is opened directly rather than embedded in an <img>, the browser parses the response as an SVG document and executes the retained script in the Penpot origin with the victim's auth-token cookie. The upstream fix (commit 238a4d8613d4799b92eab0e38e5194fb72dc116d) adds a local-name helper that strips everything up to the last colon from both tags and attributes and matches the blocklist and the href/javascript: checks on the local name instead of the qualified keyword, and adds regression tests for prefixed script, foreignObject/set/animate, prefixed javascript: href, prefixed event handlers and xlink-prefixed href.
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
Authenticated edit-rights user (PR:L) uploads over the network (AV:N/AC:L), victim must open the asset (UI:R), and script runs in the Penpot origin affecting other users' sessions (S:C) with limited confidentiality/integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
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-131542
GHSA-f5h5-c9gp-6c5r
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB