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

- 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
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-02-20T00:00:00.000Z
- Modified: 2026-06-17T03:53:46.533Z
- Also known as: GHSA-465f-mxxh-grc4
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Baremetrics baremetrics-calendar: from 1.0.14 up to 1.0.14
- baremetrics-calendar (npm): up to 1.0.14
- baremetrics date_range_picker: up to 1.0.14

## 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`
- NVD: 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://securitylab.github.com/advisories/GHSL-2021-1042_Baremetrics_Date_Range_Picker/> (exploit, third-party-advisory)
- <https://github.com/Baremetrics/calendar/blob/240c20134ffbf0f0f246a50feff2be1ff19cf349/public/js/Calendar.js#L724> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32859> (advisory)
- <https://github.com/Baremetrics/calendar> (package)
- <https://securitylab.github.com/advisories/GHSL-2021-1042_Baremetrics_Date_Range_Picker> (advisory)

## Sources

- CVE List: [CVE-2021-32859](https://www.cve.org/CVERecord?id=CVE-2021-32859), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-465f-mxxh-grc4](https://github.com/advisories/GHSA-465f-mxxh-grc4), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-32859](https://nvd.nist.gov/vuln/detail/CVE-2021-32859), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32859 · Whole record: https://cve.day/CVE-2021-32859.json · Rebuilt by cve.day 2026-11-25T22:58:08.235Z
