The vulnerability, CVE-2026-85982, is a Stored Cross-Site Scripting (XSS) issue in the Auth0 AD/LDAP Connector, specifically affecting the display of search results and updater log content in the admin panel. The core problem was the improper HTML encoding of user-controlled data before it was rendered in the browser.
By analyzing the commit e18c2646887f2e5584395b00353eb5f9b82043c9, which explicitly mentions 'leftover XSS remediation', I identified key changes in admin/public/site.js.
-
Search Results XSS: The patch modified two anonymous JavaScript functions that were callbacks for AJAX requests to /users/by-login and /users/search. These functions previously used jQuery's .html() method to insert fetched data (which could include user-controlled directory attributes) directly into the #user-by-login-results and #users-search-results DOM elements. The .html() method interprets its input as HTML, making it susceptible to XSS. The fix correctly changed these to .text(), which treats the input as plain text and automatically escapes HTML entities, thus preventing script execution.
-
Updater Log Content XSS: The entire updater functionality, including the getUpdaterLogs function, was removed. The getUpdaterLogs function was responsible for displaying log data using $('#update-logs').html(sanitizeHtml(data)...). Even with a sanitizeHtml function, using .html() is a common vector for XSS if the sanitization is incomplete or bypassed. The removal of this feature and its associated rendering logic indicates it was a vulnerable component related to the XSS issue.
These functions are directly involved in processing and rendering user-influenced data without adequate output encoding, making them the precise points of vulnerability that would appear in a runtime profiler during an XSS attack.