Postiz sanitizes post content when it is saved and again when the public preview page renders it, keeping only an allowlist of tags and attributes. The sanitizer still let every data and aria attribute through, whatever its name or value. The preview page includes a tooltip component that renders the HTML found in the data-tooltip-html attribute of any element in the page that refers to it.
A post containing an element with those tooltip attributes was therefore stored and rendered unchanged, and when a visitor moved the mouse over it, the tooltip inserted the attribute's markup into the page as live HTML. The script runs on the application's origin with the visitor's session.
The victim has to be signed in to the same instance as a member of another organization when opening the preview link.
Exploitation was demonstrated against unmodified backend and frontend builds at commit 3a7d28b7ad96, with jsdom as the victim's browser: a draft saved by one organization, opened through its preview link by the owner of another, sent that organization's API key to an outside host. The chain was not observed in Chrome or Firefox.
Set DISABLE_REGISTRATION=true. The attacker needs an ordinary account, so closing self-registration limits exposure to people who already hold one. This reduces reach, it does not close the issue.
Upgrade to Postiz v2.26.1 or later.