Bootstrap: The Toggler plugin turns sanitizer-approved `data-*` attributes into an executable inline event handler
CVE-2026-141468
Summary [Bootstrap](https://github.com/twbs/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](https://github.com/twbs/bootstrap/blob/e93ba5e5267ac2f74d5d35f1c11bb476957de94b/js/src/toggler.ts#L79-L103). 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. Not the current stable default: npm install…
Assessment
- CVSS
- 6.1 (v3.1)
- Severity
- Medium
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 2 December 2026
- Last updated
- 2 December 2026
- Weakness
- CWE-79, CWE-83
- Assigner
- security-advisories@github.com
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
At the source
References
- https://github.com/twbs/bootstrap/security/advisories/GHSA-pj28-6c95-2682
- https://nvd.nist.gov/vuln/detail/CVE-2026-141468
- https://github.com/twbs/bootstrap/commit/9598cdc049926a161de7401d4ac05e091e6ed80d
- https://gist.github.com/superboy-zjc/a5fee7d574d970728defaa7aa21aa19b
- https://github.com/twbs/bootstrap/releases/tag/v6.0.0-alpha.2
- https://github.com/advisories/GHSA-pj28-6c95-2682
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-141468