# WP Store Locator <= 3.0.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'template' Shortcode Attribute

- **ID:** WPSEC-2026-0620
- **Plugin:** WP Store Locator (`wp-store-locator`), https://wordpress.org/plugins/wp-store-locator/
- **Affected versions:** from 3.0.0 before 3.1.0
- **Fixed in:** 3.1.0 (Update to 3.1.0 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions None seen (as of 2026-10-08)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-store-locator
- **Fix released:** 2026-10-07
- **Published:** 2026-10-08
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0620/

## Description

The WP Store Locator plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'template' attribute of the [wpsl] shortcode in versions 3.0.0 up to, and including, 3.0.3 due to insufficient input validation and missing output escaping when the value is added to the class attribute of the store locator wrapper. 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.

## References

- https://wpsec.com/vuln/WPSEC-2026-0620/
- https://plugins.svn.wordpress.org/wp-store-locator/tags/3.1.0/
- https://wordpress.org/plugins/wp-store-locator/

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

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.
