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.
Remediation
References
https://github.com/Baremetrics/calendar/blob/240c20134ffbf0f0f246a50feff2be1ff19cf349/public/js/Calendar.js#L724
https://securitylab.github.com/advisories/GHSL-2021-1042_Baremetrics_Date_Range_Picker/
Related Vulnerabilities
CVE-2019-11343 Vulnerability in maven package org.torpedoquery:org.torpedoquery
CVE-2018-19361 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2018-19839 Vulnerability in maven package org.webjars.npm:node-sass
CVE-2020-28441 Vulnerability in npm package conf-cfg-ini
CVE-2019-10744 Vulnerability in maven package org.webjars:lodash