CVE-2026-47666 Penpot: Stored XSS via custom font family name injected into a @font-face style rule

High 7.6 Published Updated

Attackers can execute arbitrary JavaScript in victims' browsers via malicious font names, leading to session theft and unauthorized access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-47666?

CVE-2026-47666 is a high-severity cross-site scripting vulnerability in penpot, published on 26 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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 custom font family names, which are interpolated into a @font-face CSS rule and injected into the page as HTML without sanitization. Because the backend accepts an arbitrary font-family string and the frontend writes the resulting style through innerHTML, a name containing markup such as a closing style tag followed by a script can break out of the style element and execute JavaScript on the Penpot origin. The attack is passive: any team member who opens a file referencing the malicious font triggers script execution simply by rendering the page, 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-47666?

How do I fix CVE-2026-47666?

No fix has been published for CVE-2026-47666 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-47666 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47666 exists.

Sources

Also known as GHSA-w5hh-gj5c-5wpc.

Is CVE-2026-47666 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free