CVE-2025-54883 Details
Description
Vision UI is a collection of enterprise-grade, dependency-free modules for modern web projects. In versions 1.4.0 and below, the getSecureRandomInt function in security-kit versions prior to 3.5.0 (packaged in Vision-ui <= 1.4.0) contains a critical cryptographic weakness. Due to a silent 32-bit integer overflow in its internal masking logic, the function fails to produce a uniform distribution of random numbers when the requested range between min and max is larger than 2³². The root cause is the use of a 32-bit bitwise left-shift operation (<<) to generate a bitmask for the rejection sampling algorithm. This causes the mask to be incorrect for any range requiring 32 or more bits of entropy. This issue is fixed in version 1.5.0.
A critical cryptographic vulnerability has been identified in the Vision UI library, specifically within the security kit module, in versions 1.4.0 and earlier. The issue arises in the getSecureRandomInt function, which is part of security-kit versions prior to 3.5.0. The vulnerability is caused by a silent 32-bit integer overflow in the function's internal masking logic, leading to a non-uniform distribution of random numbers. This flaw becomes apparent when the specified range between minimum and maximum values exceeds 2^32. The improper masking allows for biased and predictable random number generation, undermining the cryptographic integrity of applications relying on this function.
Users can upgrade to Vision UI version 1.5.0 or later, which includes the necessary fix. For those using the security-kit module independently, version 3.5.0 or later should be used.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 6, 2025CISA-ADP
Assessed Aug 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/DavidOsipov/Vision-ui/commit/347355859f05e98047efbd96fc0e61b9191324f1 | [email protected] | Source CodeVendor |
| https://github.com/DavidOsipov/Vision-ui/security/advisories/GHSA-c9xg-x7h3-mq2q | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| DavidOsipov Vision-ui | All versions |
CPE
Remediation
| |
| DavidOsipov security-kit | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 6, 2025 | New CVE Received | [email protected] |
Volerion