Nelio Content stored XSS in post items REST route
Nelio Content – Editorial Calendar & Social Media Auto-Posting
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nelio Nelio Content – Editorial Calendar & Social Media Auto-Posting |
| No fix yet |
Original description
The Nelio Content – Editorial Calendar & Social Media Auto-Posting plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'values' parameter in versions up to, and including, 5.0.1. This is due to the /nelio-content/v1/post/(?P<id>[\d]+)/items REST route registering the 'values' argument with no sanitize_callback, storing values['efiUrl'] raw to the _nelioefi_url post-meta via update_post_meta(), and then interpolating that stored value into a style attribute via generate_style_tag() with no esc_attr/esc_url before splicing it into the img tag emitted by the_post_thumbnail(). 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 an injected page.
From the CVE record · Wordfence