Skip to main content

Bootstrap Datepicker EUVDEUVD-2026-140533

| CVE-2026-141416 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-12-01 GitHub_M GHSA-hhp5-vh47-5858
6.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Submit HTML with malicious data-bs-vcp-options
  2. Delivery
    Payload stored past default DOMPurify
  3. Exploit
    Victim focuses datepicker input
  4. Install
    Datepicker spreads JSON into Vanilla Calendar Pro
  5. C2
    VCP renders layout via innerHTML
  6. Execute
    onerror runs script in app origin
  7. Impact
    Exfiltrate tokens, perform same-origin actions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a specific, compounding set of integration conditions, all drawn from the advisory: (1) the application must load the Bootstrap 6 bundle containing the Datepicker plugin and bundled Vanilla Calendar Pro (version 6.0.0-alpha.1 or a build of main) - Bootstrap 5 lacks the plugin and is immune; (2) the application must render untrusted user HTML sanitized with DOMPurify in its default configuration, which preserves data-* attributes, and insert it into the DOM (e.g., via innerHTML); (3) the response must lack a Content Security Policy that blocks the resulting inline event handler (Bootstrap sets none by default); and (4) a victim must focus the attacker-supplied input (click or tab). The attacker needs no authentication (PR:N) but cannot trigger execution without the required victim interaction (UI:R) and the integration-specific rendering pattern - these are the key limiting factors that make real-world exposure far narrower than the raw network CVSS implies.

Impact

This is a reflected/stored DOM XSS (CWE-79/CWE-83) in the new Bootstrap 6 Datepicker, scored CVSS 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) - network vector, no attacker privileges (PR:N, so unauthenticated), but requiring victim interaction (UI:R, focusing the field) and with a scope change reflecting execution in the integrating application's origin. The headline severity overstates universal risk: the flaw is only reachable in a specific integration - an application that renders untrusted user HTML through DOMPurify's default config (which preserves data-* attributes), inserts it into the DOM, loads the Bootstrap 6 bundle containing the Datepicker plus bundled Vanilla Calendar Pro, and serves it without a CSP that blocks inline handlers. The vulnerable code exists only in the 6.0.0-alpha.1 prerelease (and main at the time); npm's stable 'latest' installs 5.3.8, which has no Datepicker and is unaffected. Signals are mixed: no CISA KEV entry and no EPSS score were provided, so there is no evidence of active or probable exploitation; the vuln.today Decision label is 'this_month', not act_now/emergency, consistent with a patched prerelease-only issue. A detailed proof-of-concept gist (driving real headless Chromium and Firefox) is referenced, but the input does not flag it as confirmed working exploit code. Net: a genuine, demonstrable XSS with a published PoC, but its real-world priority is low because it affects only a pre-stable alpha and depends on a non-universal integration pattern - treat it as a fix-before-6.0-stable item, not an active emergency.

Exploit ScenarioDerived

An application that accepts rich user-generated HTML, sanitizes it with default DOMPurify, and loads the Bootstrap 6 alpha Datepicker receives an attacker-submitted input carrying data-bs-toggle="datepicker" and a JSON data-bs-vcp-options (or data-bs-config) whose layouts.default holds markup like <img onerror=...>. DOMPurify preserves the inert-looking data-* attributes, so the stored element passes sanitization with no event handler. When a victim focuses the field, the Datepicker decodes the JSON, spreads it into Vanilla Calendar Pro, which renders the layout via innerHTML under its identity default sanitizer, running the attacker's JavaScript in the app origin. A public PoC reference exists demonstrating attacker-chosen execution and a same-origin exfiltration request; it is not verified as working exploit code in the provided input.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Attacker-controlled calendar layout markup reaching an innerHTML sink in the Bootstrap 6 Datepicker (6.0.0-alpha.1) lets a crafted date input execute JavaScript in the integrating application's origin once a victim focuses the field. The payload rides in the documented data-bs-vcp-options or generic data-bs-config JSON attributes, which DOMPurify's default configuration preserves as inert data-* attributes, so applications that sanitize untrusted rich HTML and then insert it into the DOM can be bypassed without ever disabling the sanitizer. No attacker credentials are needed (PR:N, unauthenticated) but victim interaction (UI:R) plus a specific integration pattern is required; a public proof-of-concept harness (gist with Playwright driving headless Chromium and Firefox) was published alongside the advisory, and no in-the-wild exploitation has been reported. Bootstrap 5 is not affected because it contains no Datepicker plugin.

RemediationAI

Vendor-released patch: upgrade to Bootstrap 6.0.0-alpha.2 (https://github.com/twbs/bootstrap/releases/tag/v6.0.0-alpha.2), which contains commit 0710e4096c854c3be6a4a7a2bba404f93d449993; the change overrides Datepicker._getConfig so vcpOptions is always reset to the default and both data-bs-vcp-options and a vcpOptions key inside data-bs-config are ignored, making vcpOptions a JavaScript-only option. Teams on the Bootstrap 6 prerelease should treat this as a this-month priority, and anyone on Bootstrap 5.x needs no action for this CVE. If immediate upgrade is not possible, the advisory's preconditions can be broken individually: configure the integrating application to strip data-bs-* attributes after DOMPurify runs (a DOMPurify hook or explicit forbid list - trade-off: any legitimate Bootstrap data attributes in user-generated markup stop working), or only ever set Datepicker options through JavaScript rather than rendering untrusted HTML that contains Datepicker toggles. Deploying a Content Security Policy that blocks inline event handlers also prevents the injected onerror handler from executing the injected markup's handler, at the cost of breaking any other legacy inline scripts on the page. Applications rendering untrusted rich HTML should additionally avoid passing user-supplied JSON into Vanilla Calendar Pro layouts, since Bootstrap does not sanitize those templates; use formatter functions for plain text instead. Full technical detail is in https://github.com/twbs/bootstrap/security/advisories/GHSA-hhp5-vh47-5858 and the reporter's PoC gist at https://gist.github.com/superboy-zjc/addeea5eb1e971c01274f72185ba9b1c.

Affected VersionsENISA

Bootstrap 6.0.0-alpha.1, < 6.0.0-alpha.2

Affected Packages

npm bootstrap fix: 6.0.0-alpha.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is a data-attribute script gadget chained into a third-party HTML sink (CWE-79/CWE-83). Bootstrap's generic data API JSON-decodes every data-bs-* attribute via Manipulator.getDataAttributes and merges it with data-bs-config into the plugin configuration in Config._getConfig; the Datepicker declares vcpOptions as a pass-through object for any Vanilla Calendar Pro setting and spreads the decoded object straight into the calendar constructor (js/src/datepicker.ts). Vanilla Calendar Pro renders the selected layouts entry through self.context.mainElement.innerHTML = self.sanitizerHTML(...), and its sanitizerHTML option defaults to an identity function (html) => html, so nothing is stripped. A focusin data-API handler auto-shows the calendar when an INPUT with data-bs-toggle="datepicker" receives focus, requiring no further interaction. The fix (commit 0710e40) overrides _getConfig to force vcpOptions back to Default.vcpOptions so neither data-bs-vcp-options nor a vcpOptions key inside data-bs-config can reach the calendar, and the documentation was changed to state that vcpOptions is JavaScript-only. Affected builds are the Bootstrap 6 line: the npm prerelease 6.0.0-alpha.1 (next tag, 2026-10-08) and builds of main such as 3b7f323, which bundle vanilla-calendar-pro ^3.4.0 (resolved 3.4.0). The CPE cpe:2.3:a:twbs:bootstrap:*:*:*:*:*:*:*:* is deliberately broad, and the real exposure is limited to that alpha range; stable bootstrap 5.3.8 (npm latest) has no Datepicker plugin and cannot be reached.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Remote, no attacker privileges (PR:N); requires victim focus (UI:R); script runs in the application origin, a different scope from the library (S:C); XSS yields limited confidentiality/integrity (C:L/I:L), no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Dec 01, 2026 - 21:19 EUVD

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 13 npm packages depend on bootstrap (12 direct, 1 indirect)

Ecosystem-wide dependent count for version 6.0.0-alpha.1.

Threat Intelligence Overview

EPSS Score
0.5%
Top 54% exploitable
Prevalence
Rare
affected code exists only in a 6.0.0-alpha.1 prerelease, not in stable Bootstrap
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy