CVE-2026-141468 — Bootstrap — CWE-79 · CWE-83
## 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="<js>"` 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 bootstrap` installs `5.3.8` (npm `latest`), which has no Toggler plugin or selector and is unaffected. This was reported before the first stable 6.0 release so the behavior does not ship in it. ## Threat Model Preconditions: - An application renders rich HTM
## 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="<js>"` 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 bootstrap` installs `5.3.8` (npm `latest`), which has no Toggler plugin or selector and is unaffected. This was reported before the first stable 6.0 release so the behavior does not ship in it. ## Threat Model Preconditions: - An application renders rich HTM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-141468
CVSS 6.1/10 · MEDIUM · 01.12.2026
CWE: CWE-79, CWE-83
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Cross-Site Scripting (XSS)
Summary: ## 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- i…
Affected: bootstrap
⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · user interaction required (UI:R) · low attack complexity (AC:L).
⚠️ Scope changes (S:C) — impact can cross security boundaries.
🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); limited integrity modification (I:L); pivot to other systems possible.
🛡️ REMEDIATION
→ Apply vendor security update for bootstrap.
→ Add CSP headers, HTML-encode all user input.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
📋 Routine update cycle (30 days)
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]