Skip to main content
Vulnerability Database/CVE-2026-84924

CVE-2026-84924: Drupal OTP Verification XSS Vulnerability

CVE-2026-84924 is a reflected cross-site scripting vulnerability in Drupal Email Verification, SMS Verification, and OTP Verification plugin. This flaw affects versions 0.0.0 through 2.4.0. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-84924 Overview

CVE-2026-84924 is a reflected cross-site scripting (XSS) vulnerability in the Drupal contributed module Email Verification / SMS Verification / OTP Verification. The module fails to properly neutralize user-supplied input during web page generation, allowing attackers to inject arbitrary JavaScript that executes in the browsers of victims who load a crafted URL. The flaw affects all versions from 0.0.0 through 2.4.0. The weakness is classified under CWE-79.

Critical Impact

Reflected XSS enables session hijacking, credential theft, and administrative action forgery when authenticated Drupal users, including site administrators, follow attacker-controlled links.

Affected Products

  • Drupal Email Verification / SMS Verification / OTP Verification module versions 0.0.0 to 2.4.0
  • Drupal sites that enable the module for registration, login, or user flow verification
  • Any Drupal deployment exposing verification endpoints to unauthenticated visitors

Discovery Timeline

  • 2026-10-22 - CVE CVE-2026-84924 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-84924

Vulnerability Analysis

The module reflects attacker-controlled input back into HTML responses without applying contextual output encoding. When a victim loads a URL containing a malicious payload in a request parameter, the response renders the payload as live markup. The browser then executes injected JavaScript under the origin of the Drupal site. Attackers can leverage this to read session cookies accessible to script, perform state-changing requests as the victim, scrape form tokens, or stage phishing overlays. The impact scales with the privilege of the targeted user. A reflected XSS landing on an administrator session can pivot to module installation, user creation, or arbitrary content changes. Public exploitation and proof-of-concept artifacts have not been published at the time of writing.

Root Cause

The root cause is improper neutralization of input during web page generation [CWE-79]. The module emits request-derived values into HTML sinks without using Drupal's render system escaping or the Html::escape() helper. Any string containing characters such as <, >, ", or ' is interpreted by the browser rather than displayed as text.

Attack Vector

Exploitation requires an attacker to craft a URL that targets a vulnerable verification endpoint and includes a JavaScript payload in a reflected parameter. The attacker then delivers the URL through email, chat, or an external site. When a logged-in user clicks the link, the payload executes in the context of the Drupal origin. No prior authentication is required of the attacker, and no file upload or server-side footprint is created. See the Drupal Security Advisory for vendor details.

Detection Methods for CVE-2026-84924

Indicators of Compromise

  • Web server access logs containing request parameters with <script, onerror=, javascript:, or encoded variants such as %3Cscript
  • Referrer values pointing to attacker-controlled domains preceding administrative actions in Drupal audit logs
  • Unexpected creation of Drupal users, roles, or enabled modules following a verification-page request

Detection Strategies

  • Inspect HTTP request logs for module routes associated with email, SMS, or OTP verification containing suspicious query strings
  • Deploy a web application firewall ruleset that flags reflected HTML and JavaScript payloads in GET and POST parameters
  • Correlate browser Content Security Policy (CSP) violation reports with user sessions to surface attempted script injection

Monitoring Recommendations

  • Enable Drupal's dblog or Monolog to capture full request context on verification endpoints
  • Alert on administrative configuration changes that follow external referrer traffic within short time windows
  • Monitor outbound requests from client browsers to unknown domains, which can indicate data exfiltration from an XSS payload

How to Mitigate CVE-2026-84924

Immediate Actions Required

  • Upgrade the Email Verification / SMS Verification / OTP Verification module to a release later than 2.4.0 once published by the maintainer
  • Review the Drupal Security Advisory SA-CONTRIB-2026-125 for the fixed version and apply it across all environments
  • Audit administrator and privileged account activity for unexpected actions since the module was deployed

Patch Information

Refer to the Drupal Security Advisory for the fixed module version. Apply the update through the standard Drupal module update workflow and clear caches after deployment. Rotate session identifiers and administrator credentials if exploitation is suspected.

Workarounds

  • Disable the Email Verification / SMS Verification / OTP Verification module until the patched version is installed
  • Enforce a strict Content Security Policy that blocks inline scripts and restricts script sources to trusted origins
  • Place a web application firewall rule in front of verification endpoints to filter payloads containing HTML tags or JavaScript event handlers
bash
# Example Drush command to disable the module pending a patch
drush pm:uninstall email_verification_sms_otp
drush cache:rebuild

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.