Affected versions
- Affected versions
- <=6.6.7 || >=6.7 <=6.7.7 || >=6.8 <=6.8.8 || >=6.9 <=6.9.7 || >=7.0 <=7.0.4 || >=7.1 <=7.1
- Fixed version
- 6.6.8 · 6.7.8 · 6.8.9 · 6.9.8 · 7.0.5 · 7.1.1
Description
WordPress Core's theme installer (theme.js RunInstaller) passed the 'theme' slug from theme-install.php?theme= into a jQuery attribute selector ($('div[data-slug="'+slug+'"]')) without escaping, and matched any element rather than only theme cards. A crafted URL can automatically install and preview an inactive WordPress.org theme and inject an arbitrary jQuery selector.
Links
Credits
- Paulos Yibelo

