Bootstrap: Datepicker data API turns a sanitizer-preserved `data-bs-vcp-options` attribute into executable calendar
Affects bootstrapSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium : upgrade to 6.0.0-alpha.2 when convenient.
Data as of 2 Dec 2026, 03:00 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.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:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| npmbootstrap | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in Bootstrap 6 starting from version 6.0.0-alpha.2 that fixes this vulnerability. Users should upgrade to this version or later to remediate the issue. Until then, applications should avoid using the vulnerable Bootstrap 6 alpha releases or disable the Datepicker plugin if possible. Additionally, implementing a strict Content Security Policy (CSP) that disallows inline event handlers can mitigate exploitation. The vendor does not require or set CSP by default. No other mitigations are documented.
Description
Bootstrap 6's new Datepicker plugin has a vulnerability in its data API that allows an attacker to inject executable JavaScript via the `data-bs-vcp-options` attribute. This attribute is JSON-decoded and passed directly to the Vanilla Calendar Pro component, which renders attacker-controlled HTML with `innerHTML` under an identity sanitizer. When an application sanitizes user HTML with DOMPurify (default settings preserving `data-*` attributes) and uses Bootstrap 6 Datepicker, an attacker can submit malicious input that executes JavaScript when a victim focuses the affected input field. This vulnerability affects Bootstrap 6 alpha releases prior to 6.0.0-alpha.2 and is not present in the stable Bootstrap 5 releases.
References
- github.com/twbs/bootstrap/security/advisories/GHSA-hhp5-vh47-5858 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-141416 (opens in a new tab)
- github.com/twbs/bootstrap/commit/0710e4096c854c3be6a4a7a2bba404f93d449993 (opens in a new tab)
- gist.github.com/superboy-zjc/addeea5eb1e971c01274f72185ba9b1c (opens in a new tab)
- github.com/twbs/bootstrap (opens in a new tab)
- github.com/twbs/bootstrap/releases/tag/v6.0.0-alpha.2 (opens in a new tab)