Description
The Astra theme for WordPress is vulnerable to Stored Cross-Site Scripting via the `ast-page-background-meta` and `ast-content-background-meta` post meta fields in all versions up to, and including, 4.12.3. This is due to insufficient input sanitization on meta registration and missing output escaping in the `astra_get_responsive_background_obj()` function for four CSS-context sub-properties (`background-color`, `background-image`, `overlay-color`, `overlay-gradient`). This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Problem types
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
* (semver)
Timeline
| 2026-03-04: | Vendor Notified |
| 2026-03-10: | Disclosed |
Credits
Alex Hickey
References
www.wordfence.com/...-1ee5-4272-bf6d-36a02023f658?source=cve
themes.trac.wordpress.org/...3/inc/core/common-functions.php
themes.trac.wordpress.org/...3/inc/core/common-functions.php
themes.trac.wordpress.org/...abox/class-astra-meta-boxes.php
themes.trac.wordpress.org/...abox/class-astra-meta-boxes.php
themes.trac.wordpress.org/...2.4&old=312219%40astra%2F4.12.3