CVE-2026-141416
Bootstrap: the Datepicker data API turns a sanitizer- preserved `data- bs- vcp- options` attribute into executable calendar HTML
- Severity
- 6.1MediumNetwork attack, no privileges, needs user interactionCVSS 3.1, CVE List
- Exploitation
- None reported
- Exploit chance
- 0.60% in 30 daysPercentile50thEPSS, scored
- Listed fix
6.0.0-alpha.2for bootstrapFrom GitHub Advisories and OSV3 other affected packages
Overview
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.
CVSS 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
Impact
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploit chance over time
Affected
Packages 4
| Package | Affected | Fixed |
|---|---|---|
bootstrapnpm | 6.0.0-alpha.1 up to 6.0.0-alpha.2 | 6.0.0-alpha.2 |
bootstrap-htmlUbuntu:24.04:LTS | All versions, plus listed versions 5.3.1+dfsg-1 | None listed |
bootstrap-htmlUbuntu:26.10 | All versions, plus listed versions 5.3.8+dfsg-25.3.8+dfsg-3 | None listed |
bootstrap-htmlUbuntu:26.04:LTS | All versions, plus listed versions 5.3.5+dfsg-45.3.8+dfsg-15.3.8+dfsg-2 | None listed |
Products 2
Exploits
Sources link exploit code, tools that only detect the flaw and other work on it, and most don’t say which a link is.
| Link | Source | Date |
|---|---|---|
| googlesky/CVE-2026-141416 | PoC in GitHub | 2026-12-02 |
Sources
CVE List Score usedCVSS 3.16.1
Bootstrap: the Datepicker data API turns a sanitizer-preserved `data-bs-vcp-options` attribute into executable calendar HTML
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.
- Record
CVE-2026-141416- 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 - Weakness
- CWE-79, CWE-83
- Updated
- 2026-12-05
EUVDEUVD-2026-140533CVSS 3.16.1
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.
- Record
EUVD-2026-140533- 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 - Updated
- 2026-12-05
GitHub AdvisoriesGHSA-hhp5-vh47-5858CVSS 3.16.1
Bootstrap: Datepicker data API turns a sanitizer-preserved `data-bs-vcp-options` attribute into executable calendar HTML
Summary
Bootstrap's new Datepicker plugin (Bootstrap 6) is documented to take any Vanilla Calendar Pro setting through the data attribute data-bs-vcp-options, holding a JSON object.
Bootstrap's data API JSON-decodes that attribute, and the Datepicker spreads the decoded object straight into Vanilla Calendar Pro, which renders its layouts option with innerHTML under an identity default sanitizer.
Bootstrap's own security model promises that content is sanitized unless the integrator disables or modifies that sanitization, and scopes out only "vulnerabilities caused solely by disabling or modifying content sanitization".
This report disables and modifies nothing: an application that renders untrusted HTML through default DOMPurify keeps the inert data-bs-* attributes (DOMPurify preserves data-* by default), so a single input carrying data-bs-toggle="datepicker" and a JSON layouts.default passes the sanitizer with no executable attribute, and the browser runs the attacker's script the moment a victim focuses that input.
- Affected:
bootstrapon the Bootstrap 6 line, including the published prerelease6.0.0-alpha.1(npmnexttag, released 2026-10-08) and the defaultmainbranch at3b7f323. The Bootstrap 6 bundle ships Vanilla Calendar Pro (peervanilla-calendar-pro@^3.4.0, resolved to3.4.0). - Not the current stable default:
npm install bootstrapinstalls5.3.8(npmlatest), which has no Datepicker plugin and is unaffected. We report this before the first stable 6.0 release so the behavior does not ship in it. - Related but distinct root cause: this is not the Toggler issue GHSA-pj28-6c95-2682 (which we also reported, accepted for a fix in v6 alpha.2). The Toggler fix does not touch the Datepicker, and the exploit still executes on that private fix branch. See "Relationship to the Toggler advisory" below.
Threat Model
Preconditions:
- An application renders rich HTML from an untrusted user, sanitizes it with DOMPurify in its default configuration (which keeps
data-*attributes), and inserts the result into the DOM, for example withinnerHTML. This is a common user-generated-content pattern, but it is the integration-specific condition that makes the bug reachable, so we treat it as non-universal. - The page loads the Bootstrap 6 bundle that contains the Datepicker plugin and bundled Vanilla Calendar Pro (
6.0.0-alpha.1, or a build of currentmain). - The response has no Content Security Policy that forbids the resulting inline event handler. Bootstrap does not require or set such a CSP by default.
- A victim focuses the attacker-supplied input. The interaction is one ordinary focus of a normal-looking date field (clicking or tabbing into it).
Attack steps:
- The attacker submits HTML through the application's normal content path: an
<input data-bs-toggle="datepicker" data-bs-vcp-options='{"layouts":{"default":"<img ... onerror=...>"}}'>. - DOMPurify's default sanitize keeps the two
data-bs-*attributes and removes nothing else; the stored or rendered element has no event handler and looks inert. - A victim views the content and focuses the field; the Datepicker data API JSON-decodes
data-bs-vcp-options, spreads it into Vanilla Calendar Pro, and VCP assigns the attacker'slayouts.defaultto the calendar withinnerHTMLunder its identity default sanitizer. - The injected markup's
onerrorhandler runs the attacker's JavaScript on the application's origin.
Practical impact in an app that renders DOMPurify-sanitized user HTML and loads Bootstrap 6:
- Arbitrary JavaScript on the application origin as the victim: reading
localStorage,sessionStorageand script-accessible cookies, exfiltrating a token, making authenticated same-origin requests, and modifying the page. Our PoC demonstrates attacker-chosen JavaScript…
- Record
GHSA-hhp5-vh47-5858- 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 - Weakness
- CWE-79, CWE-83
- Updated
- 2026-12-02
NVDCVSS 3.16.1
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.
- Record
CVE-2026-141416- 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 - Weakness
- CWE-79, CWE-83
- Updated
- 2026-12-05
OSVCVSS 3.16.1
Bootstrap: the Datepicker data API turns a sanitizer-preserved `data-bs-vcp-options` attribute into executable calendar HTML
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.
- Record
CVE-2026-141416- 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 - Weakness
- CWE-79, CWE-83
- Updated
- 2026-12-02
OSVGHSA-hhp5-vh47-5858CVSS 3.16.1
Bootstrap: Datepicker data API turns a sanitizer-preserved `data-bs-vcp-options` attribute into executable calendar HTML
Summary
Bootstrap's new Datepicker plugin (Bootstrap 6) is documented to take any Vanilla Calendar Pro setting through the data attribute data-bs-vcp-options, holding a JSON object.
Bootstrap's data API JSON-decodes that attribute, and the Datepicker spreads the decoded object straight into Vanilla Calendar Pro, which renders its layouts option with innerHTML under an identity default sanitizer.
Bootstrap's own security model promises that content is sanitized unless the integrator disables or modifies that sanitization, and scopes out only "vulnerabilities caused solely by disabling or modifying content sanitization".
This report disables and modifies nothing: an application that renders untrusted HTML through default DOMPurify keeps the inert data-bs-* attributes (DOMPurify preserves data-* by default), so a single input carrying data-bs-toggle="datepicker" and a JSON layouts.default passes the sanitizer with no executable attribute, and the browser runs the attacker's script the moment a victim focuses that input.
- Affected:
bootstrapon the Bootstrap 6 line, including the published prerelease6.0.0-alpha.1(npmnexttag, released 2026-10-08) and the defaultmainbranch at3b7f323. The Bootstrap 6 bundle ships Vanilla Calendar Pro (peervanilla-calendar-pro@^3.4.0, resolved to3.4.0). - Not the current stable default:
npm install bootstrapinstalls5.3.8(npmlatest), which has no Datepicker plugin and is unaffected. We report this before the first stable 6.0 release so the behavior does not ship in it. - Related but distinct root cause: this is not the Toggler issue GHSA-pj28-6c95-2682 (which we also reported, accepted for a fix in v6 alpha.2). The Toggler fix does not touch the Datepicker, and the exploit still executes on that private fix branch. See "Relationship to the Toggler advisory" below.
Threat Model
Preconditions:
- An application renders rich HTML from an untrusted user, sanitizes it with DOMPurify in its default configuration (which keeps
data-*attributes), and inserts the result into the DOM, for example withinnerHTML. This is a common user-generated-content pattern, but it is the integration-specific condition that makes the bug reachable, so we treat it as non-universal. - The page loads the Bootstrap 6 bundle that contains the Datepicker plugin and bundled Vanilla Calendar Pro (
6.0.0-alpha.1, or a build of currentmain). - The response has no Content Security Policy that forbids the resulting inline event handler. Bootstrap does not require or set such a CSP by default.
- A victim focuses the attacker-supplied input. The interaction is one ordinary focus of a normal-looking date field (clicking or tabbing into it).
Attack steps:
- The attacker submits HTML through the application's normal content path: an
<input data-bs-toggle="datepicker" data-bs-vcp-options='{"layouts":{"default":"<img ... onerror=...>"}}'>. - DOMPurify's default sanitize keeps the two
data-bs-*attributes and removes nothing else; the stored or rendered element has no event handler and looks inert. - A victim views the content and focuses the field; the Datepicker data API JSON-decodes
data-bs-vcp-options, spreads it into Vanilla Calendar Pro, and VCP assigns the attacker'slayouts.defaultto the calendar withinnerHTMLunder its identity default sanitizer. - The injected markup's
onerrorhandler runs the attacker's JavaScript on the application's origin.
Practical impact in an app that renders DOMPurify-sanitized user HTML and loads Bootstrap 6:
- Arbitrary JavaScript on the application origin as the victim: reading
localStorage,sessionStorageand script-accessible cookies, exfiltrating a token, making authenticated same-origin requests, and modifying the page. Our PoC demonstrates attacker-chosen JavaScript…
- Record
GHSA-hhp5-vh47-5858- 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 - Weakness
- CWE-79, CWE-83
- Updated
- 2026-12-02
OSVUBUNTU-CVE-2026-141416No score
(Bootstrap is the most popular HTML, CSS, and JavaScript framework for ...)
- Record
UBUNTU-CVE-2026-141416- Updated
- 2026-12-03
The JSON record also has the rest of 2 source descriptions.
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Published date | EUVD, NVD | |
| Key facts, references | CVE List | |
| Affected packages, other IDs, references | OSV | |
| Exploit links, key facts | OSV, PoC in GitHub | |
| Published date | EUVD | |
| Affected packages, references | OSV | |
| Affected packages, key facts, references | GitHub Advisories | |
| Other IDs, references | NVD, OSV | |
| Other IDs, products, published date | EUVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/twbs/bootstrap/security/advisories/GHSA-hhp5-vh47-5858
github.com/twbs/bootstrap/commit/0710e4096c854c3be6a4a7a2bba404f93d449993
gist.github.com/superboy-zjc/addeea5eb1e971c01274f72185ba9b1c
github.com/twbs/bootstrap/releases/tag/v6.0.0-alpha.2
nvd.nist.gov/vuln/detail/CVE-2026-141416
github.com/advisories/GHSA-hhp5-vh47-5858
github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141416.json
github.com/twbs/bootstrap
ubuntu.com/security/CVE-2026-141416
cve.org/CVERecord?id=CVE-2026-141416