#Security Alerts

CVE-2026-138378 - Signature Verification Bypass Vulnerability

CVE-2026-138378 allows token forgery in Android applications.

CVE-2026-138378 - Signature Verification Bypass Vulnerability

Introduction

The CVE-2026-138378 vulnerability affects the react-native-pure-jwt library before version 3.1.1 on Android devices. This flaw allows unauthenticated attackers to forge tokens, compromising the security of applications using this library.

What happened?

The vulnerability consists of a signature verification bypass. The decode() function of the RNPureJwtModule calls the parse() function from the JJWT library without proper algorithm pinning. This allows attackers to craft a token with the header alg set to none and an empty signature, thus accepting arbitrary claims as verified.

How does the vulnerability work?

The issue lies in the lack of proper validation of signature algorithms. When a token is processed without checking the algorithm, an attacker can manipulate the token to be accepted as valid, even if it has not been signed correctly. This can lead to identity or role forgery within the application.

What is the real impact?

The impact of this vulnerability is critical, as it allows an unauthenticated attacker to forge tokens, potentially resulting in unauthorized access to sensitive application functionalities, compromising the integrity and confidentiality of user data.

Which versions are affected?

  • react-native-pure-jwt before version 3.1.1

How to fix

  1. Update the react-native-pure-jwt library to version 3.1.1 or higher.
  2. Verify that the application is using the patched version and conduct additional security testing.
  3. Monitor official repositories for new updates and patches related to this vulnerability.

Mitigation while you update

While it is not possible to update, it is recommended to:

  • Implement additional validations on received tokens, ensuring that only tokens with valid algorithms are accepted.
  • Strengthen application security by restricting access to sensitive functionalities only to authenticated users.

Conclusion

CVE-2026-138378 represents a serious threat to the security of Android applications using the react-native-pure-jwt library. It is essential for developers to update to the patched version and implement mitigation measures while this is not possible.

// Fontes

  1. NVD — CVE-2026-138378 nvd.nist.gov ↗
  2. CVE.org — CVE-2026-138378 cve.org ↗
  3. GitHub github.com ↗
  4. GitHub github.com ↗
  5. GitHub github.com ↗
  6. vulncheck.com vulncheck.com ↗

// ++ — related