Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted button via UGC form
-
DeliveryDOMPurify keeps inert data-bs-* attributes
-
ExploitVictim clicks [data-bs-toggle="toggler"] control
-
ExecutionToggler setAttribute writes onclick handler
-
PersistBrowser runs attacker JS in origin
-
ImpactExfiltrate session token / act as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Not default-exploitable: the target application must (1) accept untrusted rich HTML, sanitize it with DOMPurify in its default configuration - which deliberately preserves data-* attributes - and insert the result into the DOM (e.g., via innerHTML); (2) load the Bootstrap 6 bundle that contains the Toggler plugin (6.0.0-alpha.1 or a build of the current main line), so the [data-bs-toggle="toggler"] data API is active; and (3) serve the page with no Content Security Policy that forbids inline event handlers (Bootstrap sets none by default). Given those, the attacker supplies a button with data-bs-attribute="onclick" and data-bs-value="<payload>"; _execute() rejects only id/class and writes any other attribute name via setAttribute(), turning the sanitized data attribute into an executable handler. Limiting factors that reduce realistic risk: exploitation requires a victim click on the attacker-supplied control (UI:R); only the Bootstrap 6 alpha prerelease is affected (Bootstrap 5 has no Toggler and is unaffected, and no stable 6.0 shipped this); and a CSP blocking inline handlers neutralizes the payload. The complete fix is updating to 6.0.0-alpha.2, which adds an allowlist rejecting on* event-handler names and URL/style-bearing attributes. |
| Impact | The signals point to a genuine but conditional XSS rather than a drop-everything emergency. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, base 6.1) indicates a network-reachable, unauthenticated issue (PR:N) that nonetheless requires victim interaction (UI:R) - one click on an attacker-supplied control - and yields only limited confidentiality and integrity impact with no availability impact, consistent with CWE-79 reflected/stored script execution in the application origin. There is no KEV entry in the input, so this is not confirmed actively exploited; no EPSS score was supplied, so exploitation probability cannot be quantified here. A detailed public PoC reference exists (the superboy-zjc gist) and the GHSA advisory reproduces attacker-chosen JavaScript execution (window.pwned=true) on both the alpha bundle and a main-branch build, so this is distinctly more than theoretical, though the input does not mark it as confirmed working exploit code in a weaponized/mass-exploitation sense. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with a scheduled-remediation posture. The most important caveat is reachability: the flaw is only exploitable in applications that specifically render untrusted rich HTML sanitized with DOMPurify's default config, load the Bootstrap 6 Toggler plugin, and lack a CSP that blocks inline handlers - the advisory itself treats this integration as non-universal. No key signals conflict with the CVSS vector; the main missing data are EPSS and KEV status (both absent, which is not an error). Net: a real, patch-this-month issue for the narrow population running Bootstrap 6 alpha in that UGC pattern, not a broad high-urgency crisis. |
| Exploit ScenarioDerived | An attacker submits rich HTML through a normal user-generated-content feature of an application that uses DOMPurify's default sanitizer and loads the Bootstrap 6 Toggler plugin, embedding a button like <button data-bs-toggle="toggler" data-bs-attribute="onclick" data-bs-value="<payload>">. DOMPurify preserves the inert-looking data-bs-* attributes, so the stored markup passes sanitization with no onclick present. When a victim later views the content and clicks the button, Toggler writes the attacker's string into a real onclick handler and the browser executes attacker-chosen JavaScript in the application's origin; a public PoC in the linked gist demonstrates this exact chain. Exploitation is network-reachable and unauthenticated (PR:N) but low-complexity (AC:L) and gated on one user click (UI:R). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Stored cross-site scripting in the Bootstrap 6 Toggler plugin (npm bootstrap 6.0.0-alpha.1 and builds of the main line, fixed in 6.0.0-alpha.2) lets an attacker who can submit rich HTML slip a button past DOMPurify's default sanitizer using data-bs-attribute="onclick" and data-bs-value, which Toggler._execute() then writes into a real inline handler when a victim clicks the control. Exploitation is conditional rather than default: the application must render untrusted HTML sanitized with DOMPurify defaults (which preserve data-* attributes), load the Bootstrap 6 bundle containing Toggler, and serve the page without a CSP that forbids inline event handlers; the result is script execution in the application's origin with access to origin data and authenticated same-origin actions. The vector is AV:N with PR:N (unauthenticated remote attacker) but UI:R (one victim click), Bootstrap 5 is unaffected and no stable 6.0 shipped this code, the issue is not in CISA KEV, and a public PoC reference exists but is not verified as working exploit code.
RemediationAI
Upgrade to Bootstrap 6.0.0-alpha.2, the vendor-released fix, which replaces the id-only rejection in Toggler._execute() with an /^on/i event-handler pattern and a disallowed-attribute set (action, background, data, formaction, href, id, poster, src, srcdoc, srcset, style, xlink:href); the corresponding commit is https://github.com/twbs/bootstrap/commit/9598cdc049926a161de7401d4ac05e091e6ed80d and the release is at https://github.com/twbs/bootstrap/releases/tag/v6.0.0-alpha.2, with details in GHSA-pj28-6c95-2682. Because only the Bootstrap 6 alpha prerelease and main-branch builds carry Toggler, staying on Bootstrap 5.3.8 (npm latest) also removes exposure entirely. If neither upgrade is immediately possible, the vendor-identified neutralizing control is a Content Security Policy that forbids inline event handlers, which stops the injected onclick from executing - the trade-off is that such a policy also breaks any legitimate inline handlers and inline scripts the application relies on. Alternatively, configure the sanitizer step to strip data-bs-attribute and data-bs-value (or data-bs-* generally) from untrusted HTML before insertion, but note this diverges from DOMPurify's default behavior and can break other legitimate data-bs-* driven components; avoiding rendering of untrusted rich HTML removes the precondition altogether. The documented behavior change also matters for developers: toggling style or URL-bearing attributes is no longer supported after the fix, and the docs now advise toggling a class instead of style.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Bootstrap's new Toggler plugin builds its configuration from data-bs-* attributes via the data API (eventActionOnPlugin(Toggler, EVENT_CLICK, SELECTOR_DATA_TOGGLE, 'toggle')), so a single click both reads attacker-supplied options and acts on them. In js/src/toggler.ts, _execute() has special handling for id (refused) and class (classList.toggle) and otherwise passes the attacker-named attribute and value straight to setAttribute(). The CWE-79 root cause is really the attribute-injection variant tracked as CWE-83: the attribute name itself is attacker-controlled, so an inert sanitized element becomes an executable one after the click. The reachability precondition is the interaction with HTML sanitizers - DOMPurify's documented default configuration deliberately keeps data-* attributes, so markup carrying data-bs-toggle="toggler", data-bs-attribute="onclick" and data-bs-value="<payload>" survives sanitization with no executable attribute, and Bootstrap then materializes onclick from it. Bootstrap documents the plugin as working with "any attribute except id" and never warns that names must be developer-controlled. The same data-attribute script-gadget class has been fixed in Bootstrap before (CVE-2019-8331 tooltip/popover data-template, CVE-2018-14040 collapse data-parent, CVE-2018-14041 scrollspy data-target, CVE-2018-14042 tooltip data-container, CVE-2024-6485 button data-loading-text). The upstream fix (commit 9598cdc) adds an /^on/i event-handler pattern plus a disallowed set (action, background, data, formaction, href, id, poster, src, srcdoc, srcset, style, xlink:href) and regression tests confirming aria-* and data-* attributes still toggle. CPE data identifies the affected package as cpe:2.3:a:twbs:bootstrap, i.e. the twbs:bootstrap npm/GitHub project on the 6.0 line.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attacker submits HTML remotely with no auth (AV:N/PR:N) but needs a victim click (UI:R); script runs in the app origin beyond the plugin (S:C) with limited C/I and no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 13 npm packages depend on bootstrap (12 direct, 1 indirect)
Ecosystem-wide dependent count for version 6.0.0-alpha.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-140534
GHSA-pj28-6c95-2682
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB