All vulnerabilities

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
Weakness
Cross-site scripting (CWE-79)CWE-83
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.
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Bootstrapnpm · osv:npm:bootstrap
  • From 6.0.0-alpha.1 before 6.0.0-alpha.2

About Bootstrap

web design front-end framework

From Wikidata, CC0 1.0.
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

ReleaseLatestSecurity fixes
5 (LTS)LTS5.3.9Yes
4 (LTS)LTS4.6.2Ended 1 Jan 2023
3 (LTS)LTS3.4.1Ended 24 Jul 2019
22.3.2Ended 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
Search the list for Bootstrap

References