# Custom Post Types and Custom Fields creator – WCK <= 2.4.0 - Reflected Cross-Site Scripting via 'postedvalues' Parameter

- **ID:** WPSEC-2026-2998
- **Plugin:** Custom Post Types and Custom Fields creator – WCK (`wck-custom-fields-and-custom-post-types-creator`), https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/
- **Affected versions:** from 1.2.9 before 2.4.1
- **Fixed in:** 2.4.1 (Update to 2.4.1 or later.)
- **Severity:** Medium 4.7 (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-12)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wck-custom-fields-and-custom-post-types-creator
- **Fix released:** 2026-11-10
- **Published:** 2026-11-12
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2998/

## Description

The WCK plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'postedvalues' parameter in all versions up to, and including, 2.4.0. This is due to the base64-encoded posted values being read from the URL into single meta box forms, and map marker values being printed into an HTML attribute without escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into pages that execute if they can trick a user, such as an administrator, into clicking a crafted link. Exploitation requires a single meta box with a map field and a configured Google Maps API key.

## References

- https://wpsec.com/vuln/WPSEC-2026-2998/
- https://plugins.svn.wordpress.org/wck-custom-fields-and-custom-post-types-creator/tags/2.4.1/
- https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/

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

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.
