# Google XML Sitemaps <= 4.1.25 - Missing Authorization to Beta Program Opt-In

- **ID:** WPSEC-2026-4617
- **Plugin:** XML Sitemap Generator for Google (`google-sitemap-generator`), https://wordpress.org/plugins/google-sitemap-generator/
- **Affected versions:** from 4.1.23 before 4.1.26
- **Fixed in:** 4.1.26 (Update to 4.1.26 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-862
- **Usage among sites WPSec scans:** plugin Medium, affected versions Low (as of 2026-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/google-sitemap-generator
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4617/

## Description

The XML Sitemap Generator for Google plugin for WordPress is vulnerable to unauthorized modification of data via the directly accessible upgrade-plugin.php beta consent script in all versions from 4.1.23 up to, and including, 4.1.25. This is due to the script's capability and nonce checks only running when the 'action' parameter is 'yes', while the consent write and the beta signup request run for any 'action' value. This makes it possible for unauthenticated attackers to set the 'sm_user_consent' option to 'yes', which turns on the plugin's Google Tag Manager tracking on its settings page. The same request also sends the beta signup to the vendor's service and, if the service accepts it, changes further plugin options and runs the plugin's rewrite and IndexNow setup routines. If an attacker tricks a logged-in administrator into opening a crafted link, the administrator's email address and username are also sent to the vendor's service without their consent.

## References

- https://wpsec.com/vuln/WPSEC-2026-4617/
- https://plugins.svn.wordpress.org/google-sitemap-generator/tags/4.1.26/
- https://wordpress.org/plugins/google-sitemap-generator/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4617/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
