XSS in Penpot
CVE-2026-134828
- CVSS v3
- 5.4 Medium
- Public exploits
- 1 repository
- EPSS
- 0.003 · 27.5th percentile
- Published
- 2026-11-22
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- Required
UI:R - Scope
- Changed
S:C - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.003, 27.5th percentile (last changed ). About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- googlesky/CVE-2026-134828 (last pushed 2026-11-23): Penpot <2.19.1: SVG sanitizer matches ^javascript: on the XML-parsed value — 'java	script:alert(1)' passes while browsers strip the tab and execute it. Verbatim regexes from 4874da4^ vs javascri…
References
- github.com/penpot/penpot/security/advisories/GHSA-qwhj-rchj-58mg (vendor-advisory)
- github.com/penpot/penpot/pull/12887 (issue-tracking, patch)
- github.com/penpot/penpot/commit/4874da450f1e1f055e44109ef451ef0452f0bcea (patch)
- github.com/penpot/penpot/releases/tag/2.19.1 (release-notes)
- github.com/penpot/penpot/blob/2.19.0/backend/src/app/media/svg.clj (technical-description)
- www.vulncheck.com/advisories/penpot-2.18.0-before-2.19.1-stored-xss-via-svg-san… (third-party-advisory)