CVE-2026-47665

Penpot: Stored XSS via comment content, innerHTML renders unsanitized HTML

Published Aug 26, 2026 CVSS 3.1 · 8.7 High EPSS < 1% KEV · Not listed
Description
Penpot is an open-source design and prototyping platform. In versions up to and including 2.14.3, Penpot is vulnerable to stored cross-site scripting through file comments, whose content is stored as raw text and rendered into the page with innerHTML without any sanitization. Because the backend applies only a length check and the frontend writes comment content directly through innerHTML, any team member who can comment on a shared file can embed HTML such as an image error handler or script that executes in the browser of every other collaborator. The attack is passive: any user who opens the comments panel on the affected file triggers script execution on the Penpot origin, allowing theft of session cookies, actions performed as the victim, and access to their files and projects. This issue is fixed in version 2.15.3.

Analysis

AI-generated

Technical impact

Penpot versions up to 2.14.3 store comment text without sanitizing characters that are later rendered with innerHTML. This flaw allows an attacker to embed arbitrary JavaScript or HTML fragments in a comment, which is executed in the browsers of every collaborator when the comment panel is opened. The attack is passive; it can hijack session cookies, perform actions on behalf of the user, and provide access to files and projects on the Penpot origin.

Affected Systems

All Penpot deployments running 2.14.3 or earlier are affected. Updating to 2.15.3 or later removes the vulnerability.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is that any team member with permission to post comments can embed malicious content, and any collaborator who views the comment panel will trigger script execution. The exploitation requires no special privileges beyond commenting rights, making it relatively easy to deploy once the environment is accessible.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Penpot instance to version 2.15.3 or newer.
  • Restrict comment posting rights to trusted users or disable comments on sensitive files.
  • Apply a Content‑Security‑Policy header to mitigate script execution risk when a comment injection fails.

Generated by OpenCVE AI on August 27, 2026 at 00:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Penpot
Penpot penpot
Vendors & Products Penpot
Penpot penpot
Type Values Removed Values Added
Description Penpot is an open-source design and prototyping platform. In versions up to and including 2.14.3, Penpot is vulnerable to stored cross-site scripting through file comments, whose content is stored as raw text and rendered into the page with innerHTML without any sanitization. Because the backend applies only a length check and the frontend writes comment content directly through innerHTML, any team member who can comment on a shared file can embed HTML such as an image error handler or script that executes in the browser of every other collaborator. The attack is passive: any user who opens the comments panel on the affected file triggers script execution on the Penpot origin, allowing theft of session cookies, actions performed as the victim, and access to their files and projects. This issue is fixed in version 2.15.3.
Title Penpot: Stored XSS via comment content, innerHTML renders unsanitized HTML
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 27, 2026, 3:16 PM
Reserved
May 19, 2026, 9:10 PM
Status
Deferred
Published
Aug 26, 2026, 11:17 PM
Modified
Sep 9, 2026, 9:09 PM