# ActivityPub <= 9.4.3 - Unauthenticated Stored Cross-Site Scripting via Custom Emoji in Tag Attributes

- **ID:** WPSEC-2026-3513
- **Plugin:** ActivityPub (`activitypub`), https://wordpress.org/plugins/activitypub/
- **Affected versions:** all versions before 9.4.4
- **Fixed in:** 9.4.4 (Update to 9.4.4 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-19)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/activitypub
- **Fix released:** 2026-11-18
- **Published:** 2026-11-19
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3513/

## Description

The ActivityPub plugin for WordPress is vulnerable to Stored Cross-Site Scripting via custom emoji shortcodes in federated content in all versions up to, and including, 9.4.3, due to the plugin wrapping emoji shortcodes in emoji blocks, and rendering them as img markup, anywhere in the text, including inside HTML tag attributes. The generated markup can break out of the attribute when the content is stored without a second kses pass, for example when a reply is imported through the URL search while an administrator is logged in. This makes it possible for unauthenticated attackers controlling a remote Fediverse actor to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, if they can trick an administrator into performing an action such as searching for or opening a link to the attacker's post.

## References

- https://wpsec.com/vuln/WPSEC-2026-3513/
- https://plugins.svn.wordpress.org/activitypub/tags/9.4.4/
- https://wordpress.org/plugins/activitypub/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3513/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
