# Age Gate <= 3.7.3 - Authenticated (Contributor+) Local File Inclusion via Shortcode

- **ID:** WPSEC-2026-2867
- **Plugin:** Age Gate (`age-gate`), https://wordpress.org/plugins/age-gate/
- **Affected versions:** from 3.0.0 before 3.8.0
- **Fixed in:** 3.8.0 (Update to 3.8.0 or later.)
- **Severity:** High 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-98
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-12)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/age-gate
- **Fix released:** 2026-11-10
- **Published:** 2026-11-12
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2867/

## Description

The Age Gate plugin for WordPress is vulnerable to Local File Inclusion via the 'type' attribute of the age-gate shortcode in all versions up to, and including, 3.7.3, due to the attribute value being concatenated into a template include path without validation or restriction to the allowed input types. This makes it possible for authenticated attackers, with contributor-level access and above, to use directory traversal sequences to include and execute arbitrary .php files on the server. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php files can be uploaded or already exist on the server.

## References

- https://wpsec.com/vuln/WPSEC-2026-2867/
- https://plugins.svn.wordpress.org/age-gate/tags/3.8.0/
- https://wordpress.org/plugins/age-gate/

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

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.
