AploSec / Disclosures / CVE-2026-134828
Penpot 2.18.0 before 2.19.1 Stored XSS via SVG Sanitizer Re-serialization
CVE-2026-134828 · published 2026-11-22
In plain words: this type of bug lets someone run scripts in another person's browser (cross-site scripting, XSS). A fixed release is listed.
Summary
CVE-2026-134828 affects Penpot (Server) >= 2.18.0, < 2.19.1: Stored XSS via SVG Sanitizer Re-serialization (CWE-79). Fixed in 2.19.1. CVSS 4.0 base score 5.1 (Medium), assigned by VulnCheck. Published 2026-11-22 by VulnCheck. Credit: Zachariah Mithani (AploSec), b-hermes.
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
Upgrade Penpot to 2.19.1 or later. Releases in the affected range (>= 2.18.0, < 2.19.1) are vulnerable. See the linked advisory for details on affected release lines.
Timeline
- 2026-11-22 CVE published
References
- Referencehttps://github.com/penpot/penpot/security/advisories/GHSA-qwhj-rchj-58mg
- Releasehttps://github.com/penpot/penpot/releases/tag/2.19.1
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/penpot-2.18.0-before-2.19.1-stored-xss-via-svg-sanitizer-re-serialization
- Fix pull requesthttps://github.com/penpot/penpot/pull/12887
- Fix commithttps://github.com/penpot/penpot/commit/4874da450f1e1f055e44109ef451ef0452f0bcea
- Vulnerable codehttps://github.com/penpot/penpot/blob/2.19.0/backend/src/app/media/svg.clj#L97-L106
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-134828
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-134828
- Severity
- Medium 5.1CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- Penpot
- Ecosystem
- Server
- Affected
- >= 2.18.0, < 2.19.1
- Fixed
- 2.19.1
- Weakness
- CWE-79
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finderb-hermesfinder