{"id":"CVE-2021-32859","state":"PUBLISHED","title":"Baremetrics date range picker vulnerable to Cross-site Scripting","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.","publishedAt":"2023-02-20T00:00:00.000Z","updatedAt":"2025-03-10T21:08:19.969Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["Baremetrics baremetrics-calendar"],"affected":[{"vendor":"Baremetrics","product":"baremetrics-calendar","versions":[{"version":"1.0.14","status":"affected","lessThanOrEqual":"1.0.14","versionType":"custom"}]}],"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"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:48:33.225Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/32xxx/CVE-2021-32859.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-32859","state":"PUBLISHED","datePublished":"2023-02-20T00:00:00.000Z","dateUpdated":"2025-03-10T21:08:19.969Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-05-12T00:00:00.000Z"},"containers":{"cna":{"title":"Baremetrics date range picker vulnerable to Cross-site Scripting","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Baremetrics","product":"baremetrics-calendar","versions":[{"version":"1.0.14","status":"affected","lessThanOrEqual":"1.0.14","versionType":"custom"}]}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-1042_Baremetrics_Date_Range_Picker/"},{"url":"https://github.com/Baremetrics/calendar/blob/240c20134ffbf0f0f246a50feff2be1ff19cf349/public/js/Calendar.js#L724"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","type":"CWE","lang":"en","description":"CWE-79 Cross-site Scripting (XSS)"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-02-20T00:00:00.000Z"},"x_generator":{"engine":"Vulnogram 0.0.9"},"source":{"advisory":"GHSL-2021-1042","defect":["GHSL-2021-1042"],"discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-1042_Baremetrics_Date_Range_Picker/","tags":["x_transferred"]},{"url":"https://github.com/Baremetrics/calendar/blob/240c20134ffbf0f0f246a50feff2be1ff19cf349/public/js/Calendar.js#L724","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T23:33:56.107Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-10T21:00:12.505288Z","id":"CVE-2021-32859","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-10T21:08:19.969Z"}}]}}}