Bootstrap: The Toggler plugin turns sanitizer-approved `data-*` attributes into an executable inline event handler
Affects bootstrapSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium : upgrade to 6.0.0-alpha.2 when convenient.
Data as of 2 Dec 2026, 02:50 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.1 |
|---|
- Patch
- Available – fixed in 6.0.0-alpha.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Upgrade bootstrap to 6.0.0-alpha.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmbootstrap | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Bootstrap version 6.0.0-alpha.2 which properly restricts attributes set by the Toggler plugin. Users of affected versions should upgrade to 6.0.0-alpha.2 or later. Alternatively, applications can mitigate by disallowing inline event handlers via a strict Content Security Policy that forbids 'unsafe-inline' scripts. Additionally, sanitization configurations should be reviewed to remove or restrict 'data-bs-*' attributes if possible. Since the vulnerability depends on integration specifics, avoiding loading the vulnerable Bootstrap 6 Toggler plugin or using stable Bootstrap 5.x releases also mitigates the risk.
Description
Bootstrap 6's Toggler plugin contains a vulnerability where sanitized user-supplied HTML with certain data attributes can lead to execution of attacker-controlled JavaScript. This occurs because the plugin sets arbitrary attributes, including event handlers like 'onclick', from data attributes without proper filtering. The flaw affects versions from 6.0.0-alpha.1 up to but not including 6.0.0-alpha.2. Exploitation requires an application to use DOMPurify with default settings, load the vulnerable Bootstrap 6 Toggler plugin, and allow user interaction with the malicious element. The vulnerability enables arbitrary script execution in the context of the application origin upon a victim clicking the crafted element.
References
- github.com/twbs/bootstrap/security/advisories/GHSA-pj28-6c95-2682 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-141468 (opens in a new tab)
- github.com/twbs/bootstrap/commit/9598cdc049926a161de7401d4ac05e091e6ed80d (opens in a new tab)
- gist.github.com/superboy-zjc/a5fee7d574d970728defaa7aa21aa19b (opens in a new tab)
- github.com/twbs/bootstrap (opens in a new tab)
- github.com/twbs/bootstrap/releases/tag/v6.0.0-alpha.2 (opens in a new tab)