Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Sri UI

137 sites Security covered Drupal 8–11
View on drupal.org

This module helps protect your website by ensuring that any external files, like scripts and stylesheets loaded from content delivery networks, haven't been tampered with. It works by generating and applying cryptographic hashes to these files, allowing the browser to verify their integrity before loading them. This prevents malicious code injection through compromised external resources.

Subresource Integrity (SRI) is a security feature that enables browsers to verify that resources they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched resource must match.

How Subresource Integrity helps
Using Content Delivery Networks (CDNs) to host files such as scripts and stylesheets that are shared among multiple sites can improve site performance and conserve bandwidth. However, using CDNs also comes with a risk, in that if an attacker gains control of a CDN, the attacker can inject arbitrary malicious content into files on the CDN (or replace the files completely) and thus can also potentially attack all sites that fetch files from that CDN.

Subresource Integrity enables you to mitigate some risks of attacks such as this, by ensuring that the files your web application or web document fetches (from a CDN or anywhere) have been delivered without a third-party having injected any additional content into those files — and without any other changes of any kind at all having been made to those files.

Installation

  1. Download and install the module using Composer.
  2. Enable the module from the Extend page (`/admin/modules`) or via Drush.

Reference: Subresource Integrity - Security on the web | MDN

About this module
Provides a possibility to specify additional attributes to the libraries as required by Subresource Integrity rules

Configuration

  1. Navigate to the module configuration page at /admin/config/services/sri
  2. Enter the asset’s full URL in the required field and submit the form to generate the hash key.
  3. Alternatively, use the Drush command to update the hash key: drush update-assets-hash256

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Sep 2025
Latest release
7 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.3 Stable 8–11 Jan 28, 2026
1.0.2 Stable 8–11 Nov 25, 2025
1.0.1 Stable 8–11 Sep 25, 2025
1.0.0 Stable 8–11 Sep 23, 2025