CVE-2022-25898: Improper Verification of Cryptographic Signature

Published Jul 1, 2022
·
Updated

The package jsrsasign before 10.5.25 are vulnerable to Improper Verification of Cryptographic Signature when JWS or JWT signature with non Base64URL encoding special characters or number escaped characters may be validated as valid by mistake. Workaround: Validate JWS or JWT signature if it has Base64URL and dot safe string before executing JWS.verify() or JWS.verifyJWT() method.

Affected Software

2 affected components
Jsrsasign Project Jsrsasign Node.js>=4.8.0<10.5.25
kjur Jsrsasign Node.js>=4.8.0<10.5.25

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade jsrsasign to a version that resolves this vulnerability.

    Fixed in 10.5.25
  2. Configuration

    Before calling JWS.verify() or JWS.verifyJWT(), validate that the JWS/JWT signature uses Base64URL encoding and is a dot-safe string (no special characters or number-escaped characters) and only then proceed with verification.

    jsrsasign (JWS/JWT verification input) pre-verify signature encoding validation = Base64URL and dot-safe string

Event History

Jul 1, 2022
CVE Published
via MITRE·08:02 PM
Data Sourced
via MITRE·08:02 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-25898?

CVE-2022-25898 is a vulnerability in the package jsrsasign before version 10.5.25 which allows for improper verification of cryptographic signatures.

2

How severe is CVE-2022-25898?

CVE-2022-25898 is considered critical with a severity score of 9.8.

3

Which software versions are affected by CVE-2022-25898?

The vulnerability affects jsrsasign package versions between 4.8.0 and 10.5.24.

4

How can I fix CVE-2022-25898?

To fix CVE-2022-25898, upgrade to jsrsasign version 10.5.25 or later.

5

Are there any workarounds for CVE-2022-25898?

One workaround is to validate the JWS or JWT signature to ensure it has proper encoding.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203