{"id":"GHSA-465f-mxxh-grc4","summary":"Baremetrics date range picker vulnerable to Cross-site Scripting","details":"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.","aliases":["CVE-2021-32859"],"modified":"2023-11-08T04:06:02.661898Z","published":"2023-02-21T15:30:23Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-02-22T00:10:21Z","nvd_published_at":"2023-02-21T15:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32859"},{"type":"PACKAGE","url":"https://github.com/Baremetrics/calendar"},{"type":"WEB","url":"https://github.com/Baremetrics/calendar/blob/240c20134ffbf0f0f246a50feff2be1ff19cf349/public/js/Calendar.js#L724"},{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2021-1042_Baremetrics_Date_Range_Picker"}],"affected":[{"package":{"name":"baremetrics-calendar","ecosystem":"npm","purl":"pkg:npm/baremetrics-calendar"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.0.14"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-465f-mxxh-grc4/GHSA-465f-mxxh-grc4.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}