{"id":"CVE-2021-32859","aliases":["CVE-2021-32859","GHSA-465f-mxxh-grc4"],"related":[],"kind":"vulnerability","state":"published","title":"Baremetrics date range picker vulnerable to Cross-site Scripting","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-02-20T00:00:00.000Z","modified":"2026-06-17T03:53:46.533Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"1.0.14","lastAffected":"1.0.14","status":"affected"}],"vendor":"Baremetrics","product":"baremetrics-calendar","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.0.14"}],"ecosystem":"npm","package":"baremetrics-calendar","purl":"pkg:npm/baremetrics-calendar","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.0.14"}],"vendor":"baremetrics","product":"date_range_picker","cpe":"cpe:2.3:a:baremetrics:date_range_picker:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-1042_Baremetrics_Date_Range_Picker/","tags":["exploit","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Baremetrics/calendar/blob/240c20134ffbf0f0f246a50feff2be1ff19cf349/public/js/Calendar.js#L724","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32859","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Baremetrics/calendar","tags":["package"],"sources":["ghsa"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-1042_Baremetrics_Date_Range_Picker","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-03-10T21:00:12.505Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32859","url":"https://www.cve.org/CVERecord?id=CVE-2021-32859","licence":"CVE Terms of Use","modified":"2025-03-10T21:08:19.969Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-465f-mxxh-grc4","url":"https://github.com/advisories/GHSA-465f-mxxh-grc4","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:02.661Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32859","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32859","licence":"Public domain","modified":"2026-06-17T03:53:46.533Z"}],"updatedAt":"2026-11-25T22:58:08.235Z","epss":{"score":0.00553,"percentile":0.4758,"date":"2026-12-01T12:00:22.000Z"}}