CVE-2022-29172
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-29172 affects Auth0, an authentication broker that supports various identity providers including Active Directory, LDAP, Google Apps, and Salesforce. The vulnerability was discovered in versions before 11.33.0 of the auth0-lock package, specifically affecting installations using the 'additional signup fields' feature. The issue was disclosed on May 5, 2022, and was patched in version 11.33.0 (GitHub Advisory).

Technical details

The vulnerability allows malicious actors to inject invalidated HTML code into additional signup fields, which is then stored in the service user_metadata payload using the name property. When verification emails are generated using this metadata, the injected HTML code is rendered as the recipient's name within the delivered email template. The vulnerability has been assigned a CVSS 3.1 Base Score of 6.1 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

The vulnerability could allow attackers to inject malicious HTML code that would be rendered in verification emails sent to users. This could potentially be used for phishing attacks or other malicious purposes by exploiting the trust users place in official verification emails from the Auth0 service (GitHub Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade to auth0-lock version 11.33.0 or later. In the patched version, HTML tags are automatically stripped from user input in additional signup fields. The update implements DOMPurify sanitization to prevent HTML injection, with no HTML tags being allowed in the sanitized output (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management