{"id":"CVE-2025-54883","aliases":["CVE-2025-54883"],"related":[],"kind":"vulnerability","state":"published","title":"Vision UI's security-kit Contains Cryptographic Weakness","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Vision UI es una colección de módulos empresariales sin dependencias para proyectos web modernos. En las versiones 1.4.0 y anteriores, la función getSecureRandomInt de las versiones del kit de seguridad anteriores a la 3.5.0 (incluidas en Vision-ui &lt;= 1.4.0) presenta una vulnerabilidad criptográfica crítica. Debido a un desbordamiento silencioso de enteros de 32 bits en su lógica de enmascaramiento interna, la función no genera una distribución uniforme de números aleatorios cuando el rango solicitado entre min y max es mayor que 2³². La causa principal es el uso de una operación de desplazamiento a la izquierda bit a bit de 32 bits (&lt;&lt;) para generar una máscara de bits para el algoritmo de muestreo de rechazo. Esto provoca que la máscara sea incorrecta para cualquier rango que requiera 32 bits o más de entropía. Este problema se solucionó en la versión 1.5.0.","source":"nvd"}],"published":"2025-08-05T23:36:27.029Z","modified":"2026-06-17T09:40:51.790Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","score":9.3,"rating":"CRITICAL"}],"cwes":["CWE-338"],"affected":[{"ranges":[{"version":"< 1.5.0","status":"affected"}],"vendor":"DavidOsipov","product":"Vision-ui","source":"cvelist"}],"references":[{"url":"https://github.com/DavidOsipov/Vision-ui/security/advisories/GHSA-c9xg-x7h3-mq2q","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/DavidOsipov/Vision-ui/commit/347355859f05e98047efbd96fc0e61b9191324f1","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-08-06T16:14:22.881Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54883","url":"https://www.cve.org/CVERecord?id=CVE-2025-54883","licence":"CVE Terms of Use","modified":"2025-08-06T20:30:17.347Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54883","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54883","licence":"Public domain","modified":"2026-06-17T09:40:51.790Z"}],"updatedAt":"2026-11-25T22:59:02.077Z","epss":{"score":0.00423,"percentile":0.38589,"date":"2026-12-01T12:00:22.000Z"}}