{"id":"CVE-2025-54883","published":"2025-08-05T23:36:27Z","modified":"2025-08-06T20:30:17Z","title":"Vision UI's security-kit Contains Cryptographic Weakness","vendor":"DavidOsipov","product":"Vision-ui","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00423,"percentile":0.3742,"provenance":"source"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://github.com/DavidOsipov/Vision-ui/security/advisories/GHSA-c9xg-x7h3-mq2q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/DavidOsipov/Vision-ui/commit/347355859f05e98047efbd96fc0e61b9191324f1","tags":["x_refsource_MISC"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":7.48},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"davidosipov","affectedVersions":[{"vendor":"DavidOsipov","product":"Vision-ui","versions":["< 1.5.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-08-06T16:14:22.881760Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-23664","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-davidosipov-vision-ui-cve-2025-54883","children":[{"from":"CVE-2025-54883","to":"CVE-2025-54884","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/security-kit.js"],"commits":["https://github.com/DavidOsipov/Vision-ui/commit/347355859f05e98047efbd96fc0e61b9191324f1","https://github.com/DavidOsipov/Vision-ui/commit/74802cd688b661a35e638fc96938d65ca7c05ff5"],"basis":"rarely changed file"}]}]}}