Skip to main content

Penpot EUVDEUVD-2026-131542

| CVE-2026-133704 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-20 VulnCheck GHSA-f5h5-c9gp-6c5r
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Register/login as edit-rights user
  2. Delivery
    Upload namespace-prefixed <x:script> SVG
  3. Exploit
    Bypass sanitize-svg-element blocklist
  4. Execution
    Share file and lure victim to asset URL
  5. Persist
    Execute JS in Penpot origin with victim session
  6. Impact
    Steal 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.

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

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

Alert me

AnalysisAIv1 – 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

penpot 2.18.0 <2.18.2

Affected Packages

euvd penpot fix: 2.18.2

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

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

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.

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:P/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.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

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
popular open-source design-collaboration platform, moderate self-hosted/SaaS 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.5%
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