Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. jsrsasign
  4. ›
  5. CVE-2022-25898

CVE-2022-25898: Improper Verification of Cryptographic Signature

July 1, 2022 (updated July 13, 2022)

The package jsrsasign before 10.5.25 is 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.

References

  • cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25898
  • github.com/advisories/GHSA-3fvg-4v2m-98jf
  • github.com/kjur/jsrsasign/commit/4536a6e9e8bcf1a644ab7c07ed96e453347dae41
  • github.com/kjur/jsrsasign/releases/tag/10.5.25
  • github.com/kjur/jsrsasign/security/advisories/GHSA-3fvg-4v2m-98jf
  • nvd.nist.gov/vuln/detail/CVE-2022-25898
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-2935897
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2935896
  • snyk.io/vuln/SNYK-JS-JSRSASIGN-2869122

Code Behaviors & Features

Detect and mitigate CVE-2022-25898 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.8.0 before 10.5.25

Fixed versions

  • 10.5.25

Solution

Upgrade to version 10.5.25 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-347: Improper Verification of Cryptographic Signature
  • CWE-707: Improper Neutralization

Source file

npm/jsrsasign/CVE-2022-25898.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:22 +0000.