
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-16585 is an arbitrary file deletion vulnerability via path traversal in the Better Messages – Chat Rooms, Group Chat, Private Messages & AI Chat Bots WordPress plugin. It affects all versions up to and including 2.15.19, developed by WordPlus. The vulnerability was published on July 28, 2026, and a patch has been released. It carries a CVSS v3.1 base score of 7.2 (High) (GitHub Advisory).
The root cause is improper path validation (CWE-22) in the delete_sticker function within addons/stickers/rest.php. The normalize_sticker function applies only esc_url_raw() to sanitize sticker URLs, which does not strip ../ directory traversal sequences. As a result, an attacker can craft a URL that begins with the legitimate WordPress uploads base URL but embeds ../ sequences in the path portion; this payload is stored verbatim in WordPress options and later used by delete_sticker to resolve and delete arbitrary files on the server. The prefix check intended to restrict deletions to the uploads directory is therefore trivially bypassed (GitHub Advisory).
An authenticated attacker with administrator-level access can delete arbitrary files on the web server, including critical WordPress files such as wp-config.php. Deleting wp-config.php forces WordPress into a re-installation state, which an attacker can exploit to gain full control of the site and achieve remote code execution. This results in high confidentiality, integrity, and availability impact across the affected WordPress installation (GitHub Advisory).
https://example.com/wp-content/uploads/) but embeds ../ traversal sequences in the path, such as https://example.com/wp-content/uploads/../../wp-config.php.addons/stickers/rest.php). The normalize_sticker function applies only esc_url_raw(), which does not strip ../ sequences, so the traversal payload is stored verbatim in WordPress options.delete_sticker REST API endpoint referencing the stored malicious sticker URL. The delete_sticker function resolves the stored path and deletes the targeted file (e.g., wp-config.php) outside the intended uploads directory.wp-config.php deleted, WordPress enters a re-installation state. The attacker navigates to the WordPress setup page and reconfigures the site with attacker-controlled database credentials, gaining full administrative control and the ability to execute arbitrary code (GitHub Advisory)./wp-json/ paths related to bp-better-messages stickers) with URLs containing ../ sequences.wp-config.php or other critical WordPress core files; unexpected modification timestamps on WordPress options table entries storing sticker URLs.wp_options table entries for Better Messages sticker packs containing path traversal sequences (e.g., ../../) in URL values.Update the Better Messages plugin to a version above 2.15.19, which includes a fix that properly normalizes file paths before deletion (patch changeset available at the WordPress plugin repository) (GitHub Advisory). As a workaround prior to patching, restrict REST API access to trusted administrator accounts and monitor for anomalous file deletion activity. Implement server-level file integrity monitoring (e.g., on wp-config.php) to detect unauthorized deletions. Ensure the principle of least privilege is applied to WordPress administrator accounts.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."