XSS2Shell: New WordPress Core Vulnerability Could Enable Remote Code Execution

XSS2Shell: New WordPress Core Vulnerability Could Enable Remote Code Execution
A new WordPress core flaw called XSS2Shell (CVE-2026-64638) enables reflected pre-authentication XSS on the login page and can be chained into PHP code execution under specific conditions. WordPress versions through 7.0.2 and multiple earlier branches are affected, with public PoC code already circulating and urgent patching recommended for Italian public administration sites. #WordPress #XSS2Shell #CVE-2026-64638 #CERT-AGID #pwn.ai

Keypoints

  • The vulnerability is a high-severity reflected XSS flaw in the WordPress core login page, tracked as CVE-2026-64638 and named XSS2Shell.
  • Attackers can exploit inconsistent sanitization of user-controlled input, especially a crafted username, to trigger JavaScript execution in the WordPress domain.
  • Researchers from pwn.ai showed that the XSS can be chained into a more complex attack path that may lead to PHP code execution on the server.
  • Full compromise requires an authenticated WordPress administrator to interact with attacker-controlled content, making social engineering a key part of the chain.
  • Public Proof-of-Concept code and a GitHub lab environment have been published, lowering the barrier to reproduction of the attack.
  • WordPress releases prior to 7.0.3 and several earlier branches are affected; patches have been backported up to WordPress 4.7.34.
  • CERT-AGID advises public administration organizations to update promptly and check for signs of compromise such as unknown Application Passwords, rogue plugins, and unexpected PHP files.

MITRE Techniques

  • [T1059.007] Command and Scripting Interpreter: JavaScript – The attacker can execute JavaScript in the context of the WordPress domain by abusing the reflected XSS on the login page. (ā€˜un attaccante può ottenere l’esecuzione di codice JavaScript nel contesto del dominio WordPress senza disporre preventivamente di credenziali valide’)
  • [T1190] Exploit Public-Facing Application – The flaw affects the public WordPress authentication page and can be triggered remotely through crafted input. (ā€˜vulnerabilitĆ  … interessa la pagina di autenticazione di WordPress’)
  • [T1056.002] Input Capture: GUI Input Capture – The attack chain depends on an authenticated administrator interacting with an attacker-prepared page, enabling the attacker to abuse the victim’s session. (ā€˜richiede che un amministratore WordPress giĆ  autenticato interagisca con una pagina predisposta dall’attaccante’)
  • [T1566.002] Phishing: Spearphishing Link – Social engineering is required to lure the administrator into interacting with the malicious page. (ā€˜richiede attivitĆ  di social engineering e un’interazione esplicita della vittima’)
  • [T1608.001] Stage Capabilities: Upload Malware – The demonstrated chain includes uploading a plugin to the WordPress system as part of reaching PHP execution. (ā€˜al caricamento di un plugin e all’esecuzione di codice PHP sul server’)
  • [T1505.003] Server Software Component: Web Shell – Post-compromise checks explicitly mention the possible presence of web shells or unrecognized PHP files on the site. (ā€˜presenza di web shell o file PHP non riconducibili all’installazione’)

Indicators of Compromise

  • [CVE / Vulnerability ID] tracked flaw – CVE-2026-64638, XSS2Shell
  • [Software Versions] affected releases – WordPress 7.0.2, WordPress 6.9.5, and 5 more affected branches
  • [Software Versions] fixed releases – WordPress 7.0.3, WordPress 6.9.6, and 5 more patched versions
  • [Repository / Lab Environment] public reproduction material – GitHub repository with a WordPress 7.0.2 lab, public PoC code
  • [File Type] suspicious artifacts to look for – unexpected PHP files, web shell files
  • [Artifact / Account] compromise indicators – unknown Application Passwords, newly created administrator accounts
  • [Web Platform Artifacts] unauthorized changes – unauthorized plugins, unauthorized themes


Read more: https://cert-agid.gov.it/news/xss2shell-nuova-vulnerabilita-nel-core-di-wordpress-puo-portare-allesecuzione-di-codice-remoto/