Skip to main content
CVE-2026-141468VulnerabilityPublished

Bootstrap: The Toggler plugin turns sanitizer-approved `data-*` attributes into an executable inline event handler

Affects bootstrapSource GCVE Database

0
Compare
Authoritative record:CVE-2026-141468· Medium 6.1

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

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.16.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmbootstrapAffected
  • >=6.0.0-alpha.1 <6.0.0-alpha.2
Fixed in
  • 6.0.0-alpha.2

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

Community reviews

Loading reviews…