CVE-2026-1866 Cross-site scripting in Name Directory

High 7.2 Published Updated

Unauthenticated attackers can inject arbitrary scripts via double HTML-entity encoding in the Name Directory plugin submission form, leading to stored XSS.

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

What is CVE-2026-1866?

CVE-2026-1866 is a high-severity cross-site scripting vulnerability in jeroenpeters1986 Name Directory, published on 10 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Name Directory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via double HTML-entity encoding in all versions up to, and including, 1.32.0. This is due to the plugin's sanitization function calling `html_entity_decode()` before `wp_kses()`, and then calling `html_entity_decode()` again on output. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page via the 'name_directory_name' and 'name_directory_description' parameters in the public submission form granted they can trick the site administrator into approving their submission or auto-publish is enabled.

Weakness: CWE-79

Which versions are affected by CVE-2026-1866?

How do I fix CVE-2026-1866?

No fix has been published for CVE-2026-1866 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-1866 being exploited?

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

Sources

Also known as GHSA-wj7p-g9vc-3935.

Is CVE-2026-1866 in your software?

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

Check your SBOMs for free