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.
Metrics
CVSS 3.1 5.4/10
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| Penpot | Penpot | >= 2.18.0, < 2.19.1 |
References
- https://github.com/penpot/penpot/blob/2.19.0/backend/src/app/media/svg.clj#L97-L106
- https://github.com/penpot/penpot/commit/4874da450f1e1f055e44109ef451ef0452f0bcea
- https://github.com/penpot/penpot/pull/12887
- https://github.com/penpot/penpot/releases/tag/2.19.1
- https://github.com/penpot/penpot/security/advisories/GHSA-qwhj-rchj-58mg
- https://www.vulncheck.com/advisories/penpot-2.18.0-before-2.19.1-stored-xss-via-svg-sanitizer-re-serialization
- https://github.com/penpot/penpot/security/advisories/GHSA-qwhj-rchj-58mg
Timeline
- Published
- Nov 22, 2026
- Last modified
- Nov 23, 2026
- NVD status
- Deferred