Skip to main content

Use of Insufficiently Random Values


Severity High
Score 7.5/10


The "java.util.UUID.randomUUID()" function in Scala.js prior to 1.10.0 generates predictable values which poses a security risk. In addition, the underlying PRNG has only 48 bits of state, which means that at most 2^48 different UUIDs may be generated by "randomUUID()". This can cause likely collisions between generated UUIDs.

  • LOW
  • NONE
  • NONE
  • NONE
  • HIGH
  • NONE

CWE-330 - Use of Insufficiently Random Values

The software uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.

Advisory Timeline

  • Published