CVE-2026-134828
Penpot 2.18.0 before 2.19.1 Stored XSS via SVG Sanitizer Re-serialization
Medium · 5.1Fix available
- CVSS
- 5.1
- EPSS
- 0.34% (p20)
- Published
- 2026-11-22
- Age
- 7d old
- Modified
- 2026-11-23
- Product
- Penpot Penpot
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
Description
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.
Fixed in
2.19.1
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | Penpot | >=2.18.0, <2.19.1 | 2.19.1 |
Sources
References
- https://github.com/penpot/penpot/security/advisories/GHSA-qwhj-rchj-58mg vendor-advisory
- https://github.com/penpot/penpot/pull/12887 patch
- https://github.com/penpot/penpot/commit/4874da450f1e1f055e44109ef451ef0452f0bcea patch
- https://github.com/penpot/penpot/releases/tag/2.19.1 release-notes
- https://github.com/penpot/penpot/blob/2.19.0/backend/src/app/media/svg.clj#L97-L106 technical-description
- https://www.vulncheck.com/advisories/penpot-2.18.0-before-2.19.1-stored-xss-via-svg-sanitizer-re-serialization third-party-advisory