Penpot 2.18.0 before 2.19.1 Stored XSS via SVG Sanitizer Re-serialization
- State
- Published
- Severity
- 5.1 Medium
- Published
- Nov 22, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 22, 2026
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.
| Product | Versions |
|---|---|
| Penpot Penpot | 2.18.0 to before 2.19.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.1 Medium | VulnCheck | |
| 3.1 | 5.4 Medium | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- GitHub Security Advisory (GHSA-qwhj-rchj-58mg)Vendor Advisory
- https://github.com/penpot/penpot/pull/12887PatchIssue Tracker
- https://github.com/penpot/penpot/commit/4874da450f1e1f055e44109ef451ef0452f0bceaPatch
- Penpot 2.19.1 Release NotesRelease Notes
- https://github.com/penpot/penpot/blob/2.19.0/backend/src/app/media/svg.clj#L97-L106Technical Details
- VulnCheck Advisory: Penpot 2.18.0 before 2.19.1 Stored XSS via SVG Sanitizer Re-serializationThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.