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).

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.5%top 54.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmbaremetrics-calendarno fix listedGHSA-465f-mxxh-grc4

Affected products (as reported)

VendorProductVersions
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

References