A compromised BdThemes infrastructure allowed attackers to poison a trusted API response, execute JavaScript inside WordPress admin sessions, create hidden administrator accounts, and establish persistent access.

A new WordPress supply-chain compromise shows how attackers can abuse trusted software components without directly modifying the websites they want to compromise.

The incident involves BdThemes, a developer of premium WordPress tools used to build and customize websites. Its product portfolio includes Element Pack, Prime Slider, Ultimate Post Kit, Pixel Gallery, and Ultimate Store Kit. Element Pack alone has more than 100,000 active installations listed on WordPress.org, while BdThemes promotes a portfolio with more than 350,000 active installs.

The attack demonstrates an important security risk: a trusted plugin does not necessarily mean every component behind that plugin is trusted or secure.

Attackers Poisoned a Trusted Data Source

According to security researchers at Wordfence, attackers gained write access to a storage bucket used by BdThemes and modified a remote JSON data stream.

The stream normally supplied promotional content to an administrative banner displayed inside WordPress dashboards. However, attackers replaced the legitimate response with malicious content.

The attack became possible because of a cross-site scripting vulnerability introduced into BdThemes infrastructure in March 2026.

The vulnerable code belonged to the Biggop Library, which supports the Biggopti component responsible for retrieving promotional banners from the vendor's API infrastructure.

Because the application did not properly escape data received through the display_id parameter, attackers who controlled the upstream API response could inject JavaScript into the WordPress administrator interface.

This created a dangerous supply-chain path.

Instead of attacking every website individually, the threat actor compromised infrastructure trusted by the plugins and used that trust to reach administrators across affected installations.

Rogue Administrator Accounts Created Silently

The injected JavaScript executes when a logged-in WordPress administrator opens a dashboard page containing the compromised component.

The attacker can then abuse the administrator's authenticated session to create additional administrator accounts.

The threat becomes even harder to detect because the malicious code can manipulate database queries so that rogue accounts remain hidden from the normal WordPress user-management interface.

As a result, a website owner may see no obvious unfamiliar administrator even though an attacker has already established privileged access.

Attackers Also Added Persistence

The campaign did not stop at creating rogue accounts.

Researchers observed an additional payload, identified as w2.js, that could establish persistence by deploying a webshell called emer-run.php through a fake plugin.

This gives attackers another route back into an affected website.

Even if an organization discovers and removes an unauthorized administrator account, a persistent webshell could allow the attacker to regain access.

Therefore, organizations should not treat this incident as a simple password-reset event.

A compromised WordPress site may require a broader investigation of administrator accounts, plugins, files, database activity, API connections, and other persistence mechanisms.

Why This Supply-Chain Attack Matters

The most concerning aspect of this campaign is the trust relationship.

The malicious code did not necessarily need to arrive through a traditional malicious plugin update. Instead, attackers poisoned a remote resource that legitimate plugin functionality trusted.

This creates a different security challenge for website owners.

Organizations often focus on:

  • Plugin vulnerabilities
  • Outdated WordPress versions
  • Malicious plugin installations
  • Compromised administrator credentials
  • Vulnerable themes

However, third-party services and remote resources can also become part of the attack path.

If a trusted plugin automatically retrieves external content and processes it inside an authenticated administrative environment, a compromise of that external service can potentially affect every connected website.

WordPress Sites Should Be Investigated Carefully

WordPress administrators using affected BdThemes products should treat the incident as a potential compromise rather than simply waiting for a clean plugin release.

Security teams should review administrator accounts for unexpected additions, examine recently modified plugins and PHP files, and investigate suspicious webshells or unfamiliar plugin directories.

Organizations should also review web application firewall logs and WordPress activity logs for unexpected administrative actions.

Where compromise is suspected, teams should rotate privileged credentials and API keys, invalidate active sessions where appropriate, remove unauthorized accounts, and conduct a full integrity review before considering the site clean.

A Bigger Lesson for CISOs and Security Teams

This incident highlights a broader third-party risk problem.

Modern websites increasingly depend on external APIs, content delivery services, analytics platforms, advertising systems, libraries, and cloud-hosted resources.

Each dependency creates another trust relationship.

For organizations managing customer-facing websites, therefore, software supply-chain security should extend beyond the question of whether a plugin is legitimate.

Security teams should also ask:

What external resources does the plugin trust?

What happens if those resources are compromised?

Can external content execute inside an authenticated administrative session?

Can a compromised dependency create privileged accounts or persistent access?

These questions are particularly important for organizations operating business-critical WordPress platforms.

The BdThemes incident demonstrates that attackers do not always need to compromise the final target directly. Sometimes, compromising the trusted connection between the software and its supporting infrastructure is enough.

For CISOs and technology leaders, the takeaway is clear: third-party software risk includes the entire dependency chain, not just the software installed on the server.