CVE-2019-20174:
auth0-lock vulnerable to XSS via unsanitized placeholder property
6.1
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
1/31/2020
Updated
9/11/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
auth0-lock | npm | < 11.21.0 | 11.21.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key points: 1) The CheckboxInput component's render method directly injected the 'placeholder' value using React's dangerouslySetInnerHTML without sanitization, making it susceptible to XSS. 2) The options processing logic in processDatabaseOptions did not properly validate that 'placeholder' values for checkbox fields should be treated as plain text. The commit diff shows the fix involved separating placeholder (plain text) and placeholderHTML (explicit HTML) handling, confirming the previous unsafe usage of 'placeholder' with innerHTML.