CVE-2026-4006

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.
Configurations

No configuration.

History

22 Apr 2026, 21:32

Type Values Removed Values Added
Summary
  • (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->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}}`.

19 Mar 2026, 07:15

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-19 07:15

Updated : 2026-04-22 21:32


NVD link : CVE-2026-4006

Mitre link : CVE-2026-4006

CVE.ORG link : CVE-2026-4006


JSON object : View

Products Affected

No product.

CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')