Vulnerabilities we found in WordPress media and gallery plugins
Image optimisers, lazy loaders and media players rewrite markup after WordPress has finished checking it. That timing is the pattern behind several findings here: a Contributor stores an image tag or attribute that is harmless when it is saved, and the plugin's own rewrite at render time turns it into script. ShortPixel and LazyLoad follow that shape directly. In EWWW Image Optimizer and Presto Player the last step happens in the browser, where the plugin's own script turns an attribute into live markup.
Others reach further. NextGEN Gallery let a visitor with no account read any file the web server can read, including wp-config.php. Media Library Assistant had a SQL injection that reads the database, password hashes included. In picu, an unauthenticated route let a stranger delete every image in a client collection outright.
- Published CVEs
- 9
- Plugins
- 8
- Active installs covered
- 1.9 million+
- High severity
- 4
| CVE | Advisory | Class | Installs | Disclosed | Severity |
|---|---|---|---|---|---|
| CVE-2026-97293 | Injecting past the closing parenthesis in Media Library Assistant Media Library Assistant | SQL injection CWE-89 | 70,000+ | High 8.5 | |
| CVE-2026-94123 | Unauthenticated arbitrary file read in NextGEN Gallery NextGEN Gallery | Path traversal CWE-22 | 300,000+ | High 7.5 | |
| CVE-2026-104406 | The unhook list that became the authorization check in picu picu | Missing authorization CWE-862 | 2,000+ | High 7.3 | |
| CVE-2026-104395 | The hidden field that was never escaped in picu picu | Cross-site scripting CWE-79 | 2,000+ | High 7.1 | |
| CVE-2026-97067 | Turning a working allowlist into a wildcard in EWWW Image Optimizer EWWW Image Optimizer | Cross-site scripting CWE-79 | 1,000,000+ | Medium 6.5 | |
| CVE-2026-103070 | The tag that was safe until the plugin rewrote it in ShortPixel ShortPixel Image Optimizer | Cross-site scripting CWE-79 | 300,000+ | Medium 6.5 | |
| CVE-2026-102914 | The escape that would not encode an entity twice in Presto Player Presto Player | Cross-site scripting CWE-79 | 100,000+ | Medium 6.5 | |
| CVE-2026-105884 | The quotes the attacker never had to write in LazyLoad LazyLoad | Cross-site scripting CWE-79 | 100,000+ | Medium 6.5 | |
| CVE-2026-102399 | The twenty-sixth action in Photo Gallery by Supsystic Photo Gallery by Supsystic | Cross-site request forgery CWE-352 | 20,000+ | Medium 5.4 |
Questions
Why are image optimisation plugins a target for stored XSS?
Some of them parse and rewrite the HTML of a page after its content has been sanitised. Any decode or re-emit step in that rewrite can restore characters the sanitiser already judged safe, and from that point the plugin, not WordPress, decides whether the result is escaped.
Does a file read vulnerability matter if the attacker cannot run code?
Yes. The NextGEN Gallery read returned wp-config.php, which holds the database credentials and the eight authentication keys and salts that sign WordPress login cookies. Disclosing the salts undermines session integrity on its own, separately from the database credentials.
If your own application stores or transforms files and markup that users supply, a web application penetration test follows those values through every rewrite to the page that renders them.