CVE-2026-6642 Cross-site scripting in Media Library Assistant

Medium 6.4 Published Updated

Authenticated attackers can inject scripts via bulk edit presets that execute when administrators import them, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-6642?

CVE-2026-6642 is a medium-severity cross-site scripting vulnerability in dglingren Media Library Assistant, published on 11 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The Media Library Assistant plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the bulk edit preset export/import mechanism in versions up to and including 3.35. This is due to insufficient output escaping on preset field values when they are rendered in HTML attribute contexts in the mla_generate_bulk_edit_form_fieldsets() function and mla-bulk-edit-fieldsets.tpl template. While wp_kses() filtering is applied during preset export for users without unfiltered_html capability, this does not prevent attribute injection attacks since the malicious payload consists of quotes and HTML attributes rather than HTML tags. When preset values are retrieved and rendered, they are directly assigned to template variables without esc_attr() escaping and then inserted into input element value attributes via simple string replacement. This makes it possible for authenticated attackers, with Author-level access and above (upload_files capability), to inject arbitrary web scripts that execute when an administrator imports the poisoned preset and the targeted input field receives focus.

Weakness: CWE-79

Which versions are affected by CVE-2026-6642?

How do I fix CVE-2026-6642?

No fix has been published for CVE-2026-6642 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-6642 being exploited?

There is no known exploitation of CVE-2026-6642 in the wild and no public exploit code.

Sources

Also known as GHSA-jr9v-hfwr-qhgm.

Is CVE-2026-6642 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free