CVE-2026-15917: Drupal Core XSS Vulnerability in HTMX Integration

drupal/core Updated 16 Jul 2026

Summary

15/07/2026
Yes i
Unrated
Not published

CVE-2026-15917: Drupal core 11.2 and above integrate the HTMX JavaScript library. Affects drupal/core across 3 version ranges.

>= 11.2.0, < 11.3.0 >= 11.3.0, < 11.3.14 >= 11.4.0, < 11.4.4

Fixed in 11.3.0, 11.3.14 or 11.4.4, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Drupal is a popular open-source content management system (CMS) that enables users to build and manage websites. It is known for its flexibility, scalability, and a robust ecosystem of modules and themes. In version 11.2 and above, Drupal integrates the HTMX JavaScript library, which enhances user interactions on web pages. However, this integration has introduced a vulnerability related to insufficient sanitization of certain HTMX attributes, potentially exposing users to cross-site scripting (XSS) attacks.

Vulnerability Detail

The vulnerability arises from Drupal core's XSS filter failing to adequately sanitize specific attributes associated with the HTMX library. This oversight allows attackers to inject malicious scripts into web pages, which can be executed in the context of the user's browser. The impact of this vulnerability is significant, as it could lead to unauthorized access to sensitive information, session hijacking, or defacement of the website. It is important to note that an attacker must have the ability to insert HTML with the vulnerable attributes for the exploit to be successful.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 11.2.0, < 11.3.0 11.3.0
    composer require drupal/core:11.3.0
  • >= 11.3.0, < 11.3.14 11.3.14
    composer require drupal/core:11.3.14
  • >= 11.4.0, < 11.4.4 11.4.4
    composer require drupal/core:11.4.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, users can restrict the ability to insert HTML with the specific HTMX attributes until the patch is applied. This can be done by reviewing user permissions and sanitizing input data where applicable.

Conclusion

The CVE-2026-15917 vulnerability in Drupal core highlights the importance of maintaining up-to-date software to protect against potential XSS attacks. Users are encouraged to apply the necessary updates promptly and consider using tools like Vulert for ongoing vulnerability monitoring.

See every vulnerability recorded for drupal/core →

Share this vulnerability

FAQ

CVE-2026-15917 is a vulnerability in Drupal core that allows for cross-site scripting (XSS) due to insufficient sanitization of HTMX attributes.

Affected versions include Drupal core 11.2 and above, specifically versions >=11.3.0 <11.3.14 and >=11.4.0 <11.4.4.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If exploited, this vulnerability can lead to unauthorized access to user data, session hijacking, and the ability to execute malicious scripts in the user's browser.

To apply the patch, update your Drupal core to version 11.3.14 or 11.4.4 using Composer with the command: composer update drupal/core.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 11.2.0, < 11.3.0 11.3.0
    composer require drupal/core:11.3.0
  • >= 11.3.0, < 11.3.14 11.3.14
    composer require drupal/core:11.3.14
  • >= 11.4.0, < 11.4.4 11.4.4
    composer require drupal/core:11.4.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback