New WordPress Pre-Auth XSS Could Lead to PHP Code Execution – Patch ASAP

A newly discovered vulnerability in WordPress could allow attackers to execute malicious PHP code on a vulnerable website, highlighting the ongoing threat of pre-authentication (pre-auth) cross-site scripting (XSS) attacks. The issue, which affects all versions of WordPress prior to 6.0.3, has been patched by the platform’s developers, but users are urged to update their sites as soon as possible.

The vulnerability, discovered by a security researcher, allows an attacker to inject malicious code into a website’s PHP environment without requiring any login credentials or authentication. This type of attack is known as pre-auth XSS and can be particularly insidious because it doesn’t require the attacker to exploit any user accounts or session cookies. Instead, they can simply target a vulnerable URL on the affected site.

The key here is that WordPress sites rely heavily on PHP code execution to display content and handle requests. When an attacker injects malicious code into this environment, it can lead to arbitrary command execution – effectively giving them control over the website’s actions. This can result in sensitive data exposure, user account compromise, or even full site takeover.

The severity of this vulnerability is underscored by the fact that WordPress is one of the most widely used content management systems (CMS) on the internet, with millions of sites relying on it for their online presence. Given its widespread adoption, a successful attack could potentially affect hundreds of thousands – if not millions – of users.

To mitigate the risk, WordPress developers have released an emergency patch to address the issue. Site owners are urged to update their software immediately, as this will prevent attackers from exploiting the vulnerability. Unfortunately, this is just one example of how pre-auth XSS attacks can compromise even seemingly secure sites. As we’ve seen with numerous high-profile breaches in recent years, these types of vulnerabilities often rely on fundamental flaws in web application security.

The takeaway for site owners and developers is clear: maintaining up-to-date software and staying vigilant about potential security threats is essential to preventing these types of attacks. Regularly reviewing system logs, monitoring network traffic, and implementing robust access controls can all help mitigate the risk of pre-auth XSS attacks.


Source: The Hacker News — 2026-08-07