CVE-2024-55635: Drupal 7 Core Overlay Reflected Cross-Site Scripting (SA-CORE-2024-005)
A reflected cross-site scripting vulnerability in Drupal 7 core's Overlay module, published in Drupal Security Advisory SA-CORE-2024-005 on November 20, 2024. Drupal 7.102 fixed this upstream prior to Drupal 7 reaching end of life on January 5, 2025; CrawlShield supports sites pinned to older releases that cannot take core upgrades.
1. Affected Environments & Upstream Scope
- Affected Versions: Drupal core
>= 7.0and< 7.102. Drupal 10 and 11 are unaffected because the Overlay module was removed in Drupal 8. - Condition: Per
SA-CORE-2024-005, only sites with the coreoverlaymodule enabled are affected (enabled by default in the Standard Drupal 7 installation profile). - Risk & Exposure: Rated Critical (17/25:
AC:None/A:None/CI:Some/II:Some/E:Theoretical/TD:Default) by the Drupal Security Team, and 6.1 Medium under NVD CVSS 3.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N). No attacker authentication is required when a victim visits a crafted page/link. - Upstream Patch Status: Fixed upstream in Drupal 7.102 (and included in the final community release 7.103). Sites that cannot upgrade core due to custom patches or frozen branches need targeted backports or module disabling.
2. Technical Root Cause
The core Overlay module displays administrative and secondary pages inside an overlay frame by parsing URLs and fragment destinations in client-side JavaScript (modules/overlay/overlay-parent.js).
In Drupal 7.0 through 7.101, Drupal.overlay.redirect() and Drupal.overlay.getPath() constructed a temporary anchor element using JavaScript's String.prototype.link() ($(url.link(url)).get(0)) and passed the resulting HTML string to jQuery $(). Because String.prototype.link() embeds the unescaped string directly into an HTML attribute/tag string, crafted input could break out and be interpreted as DOM markup by jQuery.
In Drupal 7.102, those calls were replaced with safe DOM attribute assignment via $("<a>").attr("href", ...).
3. Official Workaround (Zero-Code)
Per Drupal's official SA-CORE-2024-005 advisory, sites that cannot immediately update to Drupal 7.102+ can completely mitigate the vulnerability by disabling the core Overlay module:
# Using Drush CLI (Drupal 7 / Drush 8)
drush pm-disable overlay -y
drush cache-clear all
Alternatively, log in as an administrator, open Administer > Modules (/admin/modules), disable Overlay under Core, and click Save configuration. Administrative screens will continue to work as standard full-page views.
4. Source Code Remediation
If your site depends on the Overlay module and can take community core releases, update to Drupal 7.102 (or 7.103). If your site is pinned to an older customized 7.x release and cannot upgrade core, unverified DIY diffs are withheld here; contact us for a patch tested against your exact core version and module set.
Running Production Drupal 7 Past EOL?
With official community support ended on January 5, 2025, unmaintained Drupal 7 core and contrib modules accumulate severe vulnerabilities. CrawlShield provides tested backport fixes, regression testing, and cyber insurance documentation for your Drupal 7 environment.
Request Drupal 7 security coverage