{"id":"CVE-2026-141468","summary":"Bootstrap: the Toggler plugin turns sanitizer-approved `data-*` attributes into an executable inline event handler","details":"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.","aliases":["GHSA-pj28-6c95-2682"],"modified":"2026-12-01T22:00:23.422764712Z","published":"2026-12-01T20:20:36.607Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79","CWE-83"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141468.json"},"references":[{"type":"WEB","url":"https://gist.github.com/superboy-zjc/a5fee7d574d970728defaa7aa21aa19b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141468.json"},{"type":"FIX","url":"https://github.com/twbs/bootstrap/commit/9598cdc049926a161de7401d4ac05e091e6ed80d"},{"type":"WEB","url":"https://github.com/twbs/bootstrap/releases/tag/v6.0.0-alpha.2"},{"type":"ADVISORY","url":"https://github.com/twbs/bootstrap/security/advisories/GHSA-pj28-6c95-2682"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-141468"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/twbs/bootstrap","events":[{"introduced":"780627306eb517ca210310a24e10f8186003c127"},{"fixed":"03f96cae5c9f8c66908d684a19ac1ac6897870ab"},{"fixed":"9598cdc049926a161de7401d4ac05e091e6ed80d"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"6.0.0-alpha.1"},{"fixed":"6.0.0-alpha.2"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"9598cdc049926a161de7401d4ac05e091e6ed80d"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v6.0.0-alpha.2","range":[{"fixed":"03f96cae5c9f8c66908d684a19ac1ac6897870ab"}],"source":"REFERENCES_TAG"}]}}],"versions":["v6.0.0-alpha.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-141468.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}