npm
CVE-2026-141468
Bootstrap: The Toggler plugin turns sanitizer-approved `data-*` attributes into an executable inline event handler
- Severity
- Medium 6.1
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Fixed in
- 6.0.0-alpha.2
- Exploit chance
- 0.5% in the next 30 daysHigher than 45% of CVEs. EPSS by FIRST, 2 Dec 2026
- Attack
- Over the network · No login needed · Needs someone to click or open something
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Also known as
- GHSA-pj28-6c95-2682
- Sources
- OSV.dev and GitHub
Description
Bootstrap's new Toggler plugin (Bootstrap 6) rejects only the attribute name id and then calls setAttribute(attribute, value) for any other attribute named by data-bs-attribute, with the value taken from data-bs-value. An application that renders sanitized untrusted HTML keeps data-bs- attributes, because DOMPurify preserves data- in its default configuration, so a button carrying data-bs-toggle="toggler" data-bs-attribute="onclick" data-bs-value="" passes the sanitizer with no executable attribute. When a victim clicks that button, the Toggler data API writes the attacker's string into an inline onclick handler, and the browser runs it on the application's own origin.
- Affected: bootstrap on the Bootstrap 6 line, including the published prerelease 6.0.0-alpha.1 (npm next tag, released 2026-10-08) and the default main branch at e93ba5e. js/src/toggler.ts and the shipped dist/js/bootstrap.bundle.min.js are byte-for-byte identical between the v6.0.0-alpha.1 tag and current main.
Affected software
| Software | Affected versions |
|---|---|
Bootstrapnpm · osv:npm:bootstrap |
|
About Bootstrap
web design front-end framework
- Share of all websites
- 12.7%W3Techs, Nov 2026
- Weekly downloads (npm)
- 7,834,976npm, 29 Nov 2026
- GitHub stars
- 175,117GitHub, 29 Nov 2026
- Forks
- 78,936GitHub, 29 Nov 2026
- Latest release
- v5.3.9GitHub, 29 Nov 2026
- Released
- 11 Nov 2026GitHub
- License
- MIT LicenseWikidata
- Written in
- JavaScript, Cascading Style Sheets, HTMLWikidata
- First released
- 19 Aug 2011Wikidata
- First published on GitHub
- 29 Jul 2011GitHub
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 5 (LTS)LTS | 5.3.9 | Yes |
| 4 (LTS)LTS | 4.6.2 | Ended 1 Jan 2023 |
| 3 (LTS)LTS | 3.4.1 | Ended 24 Jul 2019 |
| 2 | 2.3.2 | Ended 19 Aug 2013 |
From endoflife.date.
Vulnerabilities in Bootstrap
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-141416Bootstrap: Datepicker data API turns a sanitizer-preserved `data-bs-vcp-options` attribute into executable calendar HTMLMedium 6.1 2 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141468
- GitHub Advisory Database https://github.com/advisories/GHSA-pj28-6c95-2682