Vulnerability in Meow Gallery — CVE-2026-9239
What to do now
Update Meow Gallery to 5.5.2 or later.
Affected versions
- Everything up to and including 5.5.1
Affected: Meow Gallery (plugin, meow-gallery)
What the vulnerability is
The Meow Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Attachment Alt Text (aria-label attribute) in all versions up to, and including, 5.5.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The vulnerable code path is only reachable when a gallery item is rendered as a link (i.e., link_href is non-empty), and exploitation relies on the fact that WordPress's sanitize_text_field() strips angle-bracketed tags but preserves double quotes, allowing an attacker to break out of the aria-label attribute context and inject event-handler attributes such as onclick.
Sources
- https://plugins.trac.wordpress.org/browser/meow-gallery/tags/5.4.5/classes/core.php#L465
- https://plugins.trac.wordpress.org/browser/meow-gallery/tags/5.4.5/classes/core.php#L469
- https://plugins.trac.wordpress.org/browser/meow-gallery/tags/5.4.5/classes/run.php#L12
- https://plugins.trac.wordpress.org/browser/meow-gallery/tags/5.4.9/classes/core.php#L465
- https://plugins.trac.wordpress.org/browser/meow-gallery/tags/5.4.9/classes/core.php#L469
- https://plugins.trac.wordpress.org/browser/meow-gallery/tags/5.4.9/classes/run.php#L12