# Media Library Assistant <= 3.43 - Authenticated (Author+) SQL Injection via 'mla-metavalue' Parameter

- **ID:** WPSEC-2026-1979
- **Plugin:** Media Library Assistant (`media-library-assistant`), https://wordpress.org/plugins/media-library-assistant/
- **Affected versions:** all versions before 3.44
- **Fixed in:** 3.44 (Update to 3.44 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-29)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/media-library-assistant
- **Fix released:** 2026-10-28
- **Published:** 2026-10-30
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1979/

## Description

The Media Library Assistant plugin for WordPress is vulnerable to SQL Injection via the 'mla-metavalue' parameter in all versions up to, and including, 3.43, due to the user-supplied value (when it begins with a space) being spliced back into the query's WHERE clause with preg_replace in mla_query_posts_where_filter() without escaping or preparation. This makes it possible for authenticated attackers with author-level access and above, who can reach the Media/Assistant admin screen, to append additional SQL queries to existing queries and extract sensitive information from the database.

## References

- https://wpsec.com/vuln/WPSEC-2026-1979/
- https://plugins.svn.wordpress.org/media-library-assistant/tags/3.44/
- https://wordpress.org/plugins/media-library-assistant/

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

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.
