Vulnerability · Published Feb 20, 2023 · Assigned by GitHub_M
CVE-2021-32859Baremetrics date range picker vulnerable to Cross-site Scripting
Medium 6.1
In plain English
A medium-severity cross-site scripting in baremetrics-calendar from Baremetrics. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | baremetrics-calendar | no fix listed | GHSA-465f-mxxh-grc4 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Baremetrics | baremetrics-calendar | 1.0.14 – through 1.0.14 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N