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.
Project Subscriptions
No data.
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Tue, 01 Dec 2026 20:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Bootstrap: the Toggler plugin turns sanitizer-approved `data-*` attributes into an executable inline event handler | |
| Weaknesses | CWE-79 CWE-83 |
|
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2026-12-01T20:20:36.607Z
Reserved: 2026-12-01T19:53:55.303Z
Link: CVE-2026-141468
No data.
No data.
No data.
OpenCVE Enrichment
No data.