Vision UI security-kit.js: Potential Uncontrolled Resource Allocation Vulnerability

CVE Details

Basic Information

Title Vision UI security-kit.js: Potential Uncontrolled Resource Allocation Vulnerability
Type cve
Published 2025-08-05T23:37:28.995Z
Modified 2025-08-05T23:37:28.995Z

Product Information

Vendor DavidOsipov
Product Vision-ui
Version < 1.5.0

CVSS Information

Base Score 8.7 (HIGH)
Attack Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

AI Analysis

AI Description Vision UI versions 1.4.0 and below have vulnerabilities in the generateSecureId and getSecureRandomInt functions, allowing Denial of Service attacks through memory exhaustion and high CPU usage. These issues are resolved in version 1.5.0.
AI Severity Critical
AI Vendor DavidOsipov
AI Product Vision-ui
AI Version < 1.5.0

Affected Products

  • DavidOsipov Vision-ui < 1.5.0

Additional Information

CWE List CWE-400, CWE-770
Source GitHub_M

Description

Vision UI is a collection of enterprise-grade, dependency-free modules for modern web projects. In versions 1.4.0 and below, the generateSecureId and getSecureRandomInt functions in security-kit versions prior to 3.5.0 (packaged in Vision UI 1.4.0 and below) are vulnerable to Denial of Service (DoS) attacks. The generateSecureId(length) function directly used the length parameter to size a Uint8Array buffer, allowing attackers to exhaust server memory through repeated requests for large IDs since the previous 1024 limit was insufficient. The getSecureRandomInt(min, max) function calculated buffer size based on the range between min and max, where large ranges caused excessive memory allocation and CPU-intensive rejection-sampling loops that could hang the thread. This issue is fixed in version 1.5.0.

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.