CVE-2025-13166 PUBLISHED

Username Enumeration via SMS OTP Flow in WSO2 Identity Server Allows User Account Discovery

Assigner: WSO2
Reserved: 14.11.2025 Published: 15.09.2026 Updated: 15.09.2026

The SMS OTP flow fails to adequately handle error messages, allowing an attacker to infer the existence of registered user accounts based on the responses received during the OTP initiation process.

This weakness can be exploited by an attacker to discover valid usernames within the system. The impact is amplified for accounts that have not configured a mobile number, as the enumeration is specifically tied to this condition. The discovery of these usernames can facilitate subsequent brute force attacks, social engineering attempts, and information leakage, potentially leading to reputational damage, loss of customer trust, and regulatory non-compliance.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS Score: 3.7

Product Status

Vendor WSO2
Product WSO2 Identity Server
Versions Default: unaffected
  • affected from 7.1.0 to 7.1.0.40 (excl.)
  • affected from 7.2.0 to 7.2.0.2 (excl.)

Solutions

Follow the instructions given on https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4353/#solution

References

Problem Types

  • CWE-203: Information Exposure Through Predictable Error Conditions CWE

Impacts

  • CAPEC-243 CAPEC-243: Username Enumeration