CVE-2026-141468: Bootstrap: the Toggler plugin turns sanitizer-approved `data-*` attributes into an executable inline event handler

Published Dec 1, 2026
·
Updated

Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first projects on the web. From version 6.0.0-alpha.1 until 6.0.0-alpha.2, the Bootstrap 6 Toggler plugin accepts an attacker-controlled attribute name in data-bs-attribute and value in data-bs-value, which an application may preserve while sanitizing untrusted rich HTML with DOMPurify's default configuration. In js/src/toggler.ts, Toggler.execute() rejects only id and otherwise passes the name and value to setAttribute(), allowing a value such as an inline event handler to become executable after the victim clicks a [data-bs-toggle="toggler"] control. On a page without a Content Security Policy that blocks inline handlers, this can execute JavaScript in the application's origin and permit access to origin data, authenticated same-origin actions, and page modification. Bootstrap 5 is unaffected because it does not contain the Toggler plugin. This issue is fixed in version 6.0.0-alpha.2.

Affected Software

1 affected component
Bootstrap Bootstrap>=6.0.0-alpha.1<6.0.0-alpha.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.0.0-alpha.2

Event History

Dec 1, 2026
CVE Published
via MITRE·08:20 PM
Data Sourced
via MITRE·08:20 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Affected deployments use Bootstrap 6 from 6.0.0-alpha.1 through versions before 6.0.0-alpha.2 and include the Toggler plugin. Bootstrap 5 is not affected because it does not contain that plugin.

2

What conditions are required for exploitation?

An attacker must be able to get crafted data-bs-attribute and data-bs-value attributes preserved in page content, such as untrusted rich HTML sanitized with DOMPurify's default configuration. A victim must then click a control using data-bs-toggle="toggler".

3

Does a Content Security Policy reduce the impact?

Yes. Exploitation depends on the page lacking a Content Security Policy that blocks inline event handlers; a policy that blocks them prevents the generated inline handler from executing.

4

What should teams do if they cannot patch immediately?

Avoid allowing untrusted content to retain attacker-controlled data-bs-attribute and data-bs-value attributes, particularly where it can interact with Toggler controls. Enforce a Content Security Policy that blocks inline event handlers where feasible.

5

How can an application determine whether it is exposed?

Check whether it uses the Bootstrap 6 Toggler plugin and a version from 6.0.0-alpha.1 before 6.0.0-alpha.2. Also review whether untrusted sanitized HTML can retain the relevant data attributes and be rendered on pages with Toggler controls.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203