Skip to content
WordPress 7.2 Secrets API Raises Security Concerns

WordPress 7.2 Secrets API Raises Security Concerns

First seen 16 Nov 2026, 19:42 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 16, 2026 at 19:43 UTC
  • •WordPress 7.2 introduces a Secrets API for encrypted credential storage.
  • •Existing sites require a new encryption key to utilize the API, raising upgrade concerns.
  • •Stored secrets can be accessed by any code running on the site, posing security risks.

WordPress 7.2, set for release on December 8, 2026, introduces a Secrets API for storing encrypted API keys and passwords. However, existing sites will not have this feature enabled until a new encryption key is added to wp-config.php.

Concerns have been raised about the API's security, as any code running on the site can access the secrets, leaving sites vulnerable to compromised plugins.

New installations will automatically receive a WP_SECRETS_KEY, but upgrades from earlier versions may not, potentially leading to errors when accessing stored secrets. Users are advised to generate a secure key to ensure functionality.

The feature aims to enhance security but raises questions about its implementation and potential risks.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini
Updated 13d ago How this analysis works

Timeline

2026-11-11
Secrets API proposal published
The proposal for the Secrets API was documented, outlining its functionality and design.
make.wordpress.org
2026-11-13
Developer roundup published
The WordPress Developer Blog detailed the upcoming Secrets API and its implications for existing sites.
Cyberkendra
2026-11-16
Concerns about API security raised
Matt Mullenweg acknowledged concerns regarding the API's security, particularly about access by compromised plugins.
Cyberkendra

More articles in this cluster (3)

Common questions

How do I enable the Secrets API?
You need to add a new encryption key, WP_SECRETS_KEY, to your wp-config.php file.
What happens if I don't add the key?
Without the key, attempts to read or write secrets will result in a secret_key_unavailable error.
Are there any security risks with the Secrets API?
Yes, any code running on the site can access the secrets, which could be exploited by compromised plugins.