# CVE-2026-141416: Bootstrap: the Datepicker data API turns a sanitizer-preserved `data-bs-vcp-options` attribute into executable calendar HTML

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T20:17:15.957Z
- Modified: 2026-12-02T01:45:50.932Z
- Also known as: GHSA-hhp5-vh47-5858
- Weaknesses: CWE-79, CWE-83
- Assigned by: GitHub_M

## Description

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 Datepicker data API accepts attacker-controlled data-bs-vcp-options or data-bs-config attributes that an application may preserve while sanitizing untrusted rich HTML with DOMPurify's default configuration. The Datepicker decodes the JSON configuration and passes vcpOptions.layouts from js/src/datepicker.ts to Vanilla Calendar Pro, which renders the layout with innerHTML under its identity default sanitizer. In a page that loads the Bootstrap 6 Datepicker and lacks a Content Security Policy that blocks inline handlers, focusing the attacker-supplied input can execute JavaScript in the application's origin, allowing access to origin data and authenticated same-origin actions. Bootstrap 5 is unaffected because it does not contain the Datepicker plugin. This issue is fixed in version 6.0.0-alpha.2.

(As written by CVE List.)

## Affected

- twbs bootstrap: >= 6.0.0-alpha.1, < 6.0.0-alpha.2
- bootstrap (npm): from 6.0.0-alpha.1 before 6.0.0-alpha.2

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/twbs/bootstrap/security/advisories/GHSA-hhp5-vh47-5858> (web)
- <https://github.com/twbs/bootstrap/commit/0710e4096c854c3be6a4a7a2bba404f93d449993> (web)
- <https://gist.github.com/superboy-zjc/addeea5eb1e971c01274f72185ba9b1c> (web)
- <https://github.com/twbs/bootstrap/releases/tag/v6.0.0-alpha.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-141416> (advisory)
- <https://github.com/twbs/bootstrap> (package)

## Sources

- CVE List: [CVE-2026-141416](https://www.cve.org/CVERecord?id=CVE-2026-141416), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-hhp5-vh47-5858](https://github.com/advisories/GHSA-hhp5-vh47-5858), CC-BY-4.0, modified 2026-12-02

---

Page: https://cve.day/CVE-2026-141416 · Whole record: https://cve.day/CVE-2026-141416.json · Rebuilt by cve.day 2026-12-02T01:57:26.357Z
