Intel

AIKIDO-2025-10121

joserfc is vulnerable to Use of Insufficiently Random Values

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 28, 2025
February 28, 2025

26

CVE Score

Low

Use of Insufficiently Random Values

Are you affected? Scan for Free

TL;DR

Affected versions of the joserfc library may be vulnerable because they rely on random values that are not generated with sufficient randomness in their RFC 7516 implementation. RFC 7516 specifies the use of authenticated encryption with associated data (AEAD) and requires cryptographically secure random values for key generation, nonces, and other components. If the random values are predictable or not adequately randomized, it could allow attackers to exploit weaknesses in the encryption process, potentially compromising the security of sensitive data. This vulnerability may lead to the exposure of plaintext or unauthorized access to encrypted information, undermining the integrity and confidentiality guarantees provided by the library.

How do I fix this?

Upgrade the joserfc library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.2.0 - 1.0.3

Fixed in 1.0.4

Background info

joserfc is vulnerable to Use of Insufficiently Random Values in versions 0.2.0 - 1.0.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea