Back to Feed
VulnerabilitiesNov 16, 2026

WordPress 7.2 Secrets API: Encrypted API Keys Explained

WordPress 7.2 introduces an encrypted Secrets API, but existing sites require manual key configuration.

WordPress 7.2, set for release on December 8, 2026, will feature a new Secrets API designed to encrypt API keys, tokens, and passwords stored in the database. However, existing sites upgraded from previous versions will not have this feature enabled by default and require manual addition of an encryption key to wp-config.php. New installations will receive the key automatically, but browser-based installers are currently the only method to write it, leaving other installation methods like WP-CLI and one-click installers without the necessary configuration. Concerns have been raised by core contributors regarding the API's implementation and its security boundaries, with some requesting it be removed from the release.

AI summary of the linked source. Not reviewed by an editor. How this works

Vendor Watch

Run WordPress?

Get an email when a new story names WordPress, usually within the hour.

Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy

The lesson from this incident

Full lesson

WordPress 7.2's new Secrets API is a positive step toward protecting sensitive credentials like API keys and tokens stored in the database, but its rollout exposes a critical gap: existing sites upgraded from older versions will not have encryption enabled by default, leaving stored secrets unprotected unless administrators manually intervene. Installation methods such as WP-CLI and one-click installers currently cannot write the required encryption key to wp-config.php, creating inconsistent security postures across deployments. Additionally, unresolved concerns from core contributors about the API's security boundaries suggest the feature may ship with architectural weaknesses. This matters because credentials stored in plaintext or without proper encryption are a prime target for attackers who gain database access, turning a single breach into full credential exposure across integrated services.

What helps against this

How we list vendors

Indicators of Compromise

Addresses and file hashes are copied from the publisher's page by pattern matching. Names are picked by AI. On stories from before 17 November 2026, some addresses and hashes were picked by AI too. Not reviewed by an editor. How this works

  • cve: CVE-2026-104692

Entities

WordPress (product)Secrets API (technology)wp-config.php (technology)libsodium (technology)XChaCha20-Poly1305 (technology)Softaculous (product)