Every CVESearch/Get API key

CVE-2026-141416

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

Explain with AI
ChatGPTClaudeGoogle AI
Severity
6.1Medium
Network attack, no privileges, needs user interactionCVSS 3.1, CVE List
Exploitation
None reported
1 exploit-related link
Exploit chance
0.60% in 30 days
Percentile50th
EPSS, scored
Listed fix
6.0.0-alpha.2 for bootstrap
From 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:N

Exploit chance over time

Up 0.1 points since Dec 2, 2026
EPSS score, scored every day from Dec 2, 2026 to Dec 4, 2026: lowest 0.52% on Dec 2, 2026, highest 0.60% on Dec 3, 2026, 0.60% on the last day.

Affected

Packages 4

Affected packages
PackageAffectedFixed
bootstrap
npm
6.0.0-alpha.1 up to 6.0.0-alpha.2
6.0.0-alpha.2
bootstrap-html
Ubuntu:24.04:LTS
All versions, plus listed versions
5.3.1+dfsg-1
None listed
bootstrap-html
Ubuntu:26.10
All versions, plus listed versions
5.3.8+dfsg-25.3.8+dfsg-3
None listed
bootstrap-html
Ubuntu: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.

Exploit-related links
LinkSourceDate
googlesky/CVE-2026-141416PoC in GitHub2026-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 MediumCVSS: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 MediumCVSS: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: 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 3b7f323. The Bootstrap 6 bundle ships Vanilla Calendar Pro (peer vanilla-calendar-pro@^3.4.0, resolved to 3.4.0).
  • Not the current stable default: npm install bootstrap installs 5.3.8 (npm latest), 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 with innerHTML. 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 current main).
  • 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's layouts.default to the calendar with innerHTML under its identity default sanitizer.
  • The injected markup's onerror handler 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, sessionStorage and 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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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: 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 3b7f323. The Bootstrap 6 bundle ships Vanilla Calendar Pro (peer vanilla-calendar-pro@^3.4.0, resolved to 3.4.0).
  • Not the current stable default: npm install bootstrap installs 5.3.8 (npm latest), 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 with innerHTML. 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 current main).
  • 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's layouts.default to the calendar with innerHTML under its identity default sanitizer.
  • The injected markup's onerror handler 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, sessionStorage and 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 MediumCVSS: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

Changes recorded by Every CVE
DayChangedSources
Published dateEUVD, NVD
Key facts, referencesCVE List
Affected packages, other IDs, referencesOSV
Exploit links, key factsOSV, PoC in GitHub
Published dateEUVD
Affected packages, referencesOSV
Affected packages, key facts, referencesGitHub Advisories
Other IDs, referencesNVD, OSV
Other IDs, products, published dateEUVD
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open