Etherpad: Stored XSS in HTML export via unescaped attribute-pool values
etherpad
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ep_etherpad-lite npm |
|
|
Original description
Etherpad is a real-time collaborative editor. Prior to 3.3.0, getHTMLFromAtext in src/node/utils/ExportHtml.ts interpolates values from the exportHtmlAdditionalTagsWithData plugin hook into span data attributes without HTML attribute escaping. A pad editor can place an attacker-controlled value into the attribute pool through moveOpsToNewPool and AttributePool.putAttrib. When a bundled plugin such as ep_font_color or ep_font_size registers the hook, opening the resulting HTML export causes the value to execute as stored cross-site scripting in the Etherpad origin. This issue is fixed in version 3.3.0.
From the CVE record · GitHub_M