CVE-2024-55635: Drupal 7 Core Overlay Reflected Cross-Site Scripting (SA-CORE-2024-005)

Critical (SA-CORE-2024-005: 17/25) NVD CVSS 6.1 Medium CWE-79: Reflected XSS Drupal 7.0 to 7.101

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.

Provided as is, test before deploying All workarounds and guidance on this page are provided as is, without warranty. Test any module or configuration change in a staging environment before deploying to production. Unverified DIY source diffs have been withheld until tested directly against the affected Drupal 7 releases.

1. Affected Environments & Upstream Scope

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