CVE-2026-4006
JSON

6.4medium

Draft List <= 2.6.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'display_name' Parameter

Severity
6.4medium CVSS:3.1 by Wordfence
Exploit likelihood
0.28% (higher than 22% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Wordfence

Description

The Simple Draft List plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'display_name' post meta (Custom Field) in all versions up to and including 2.6.2. This is due to insufficient input sanitization and output escaping on the author display name when no author URL is present. The plugin accesses `$draft_data->display_name` which, because `display_name` is not a native WP_Post property, triggers WP_Post::__get() and resolves to `get_post_meta($post_id, 'display_name', true)`. When the `user_url` meta field is empty, the `$author` value is assigned to `$author_link` on line 383 without any escaping (unlike line 378 which uses `esc_html()` for the `{{author}}` tag, and line 381 which uses `esc_html()` when a URL is present). This unescaped value is then inserted into the shortcode output via `str_replace()`. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses a page containing the `[drafts]` shortcode with the `{{author+link}}` template tag.

Affected

Product or packageVersionsReported by
dartiss Draft Listup to 2.6.2CVE List

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

The Simple Draft List plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'display_name' post meta (Custom Field) in all versions up to and including 2.6.2. This is due to insufficient input sanitization and output escaping on the author display name when no author URL is present. The plugin accesses `$draft_data->display_name` which, because `display_name` is not a native WP_Post property, triggers WP_Post::__get() and resolves to `get_post_meta($post_id, 'display_name', true)`. When the `user_url` meta field is empty, the `$author` value is assigned to `$author_link` on line 383 without any escaping (unlike line 378 which uses `esc_html()` for the `{{author}}` tag, and line 381 which uses `esc_html()` when a URL is present). This unescaped value is then inserted into the shortcode output via `str_replace()`. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses a page containing the `[drafts]` shortcode with the `{{author+link}}` template tag.

NVD (es)

El plugin Simple Draft List para WordPress es vulnerable a cross-site scripting almacenado a través del metadato de publicación 'display_name' (Campo Personalizado) en todas las versiones hasta la 2.6.2 inclusive. Esto se debe a una sanitización de entrada y un escape de salida insuficientes en el nombre de visualización del autor cuando no hay una URL de autor presente. El plugin accede a `$draft_data-&gt;display_name` lo cual, debido a que `display_name` no es una propiedad nativa de WP_Post, activa WP_Post::__get() y se resuelve a `get_post_meta($post_id, 'display_name', true)`. Cuando el campo meta `user_url` está vacío, el valor de `$author` se asigna a `$author_link` en la línea 383 sin ningún escape (a diferencia de la línea 378 que usa `esc_html()` para la etiqueta `{{author}}`, y la línea 381 que usa `esc_html()` cuando hay una URL presente). Este valor sin escape se inserta luego en la salida del shortcode a través de `str_replace()`. Esto hace posible que atacantes autenticados, con acceso de nivel Colaborador y superior, inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página que contenga el shortcode `[drafts]` con la etiqueta de plantilla `{{author+link}}`.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-4006 changed 2026-04-08CVE Terms of Use
NVDCVE-2026-4006 changed 2026-06-17Public domain