# CVE-2022-25898: Improper Verification of Cryptographic Signature

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability: affected before 10.5.25 (CNA); fix release not confirmed
- Status: published
- Published: 2022-07-01 · Modified: 2024-09-16
- Aliases: GHSA-3fvg-4v2m-98jf
- Record: https://cvemate.com/vulnerability/CVE-2022-25898 · JSON: https://cvemate.com/vulnerability/CVE-2022-25898/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.171%, percentile 68.536%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 4 (reference)

## Affected

- kjur jsrsasign: ≥ 4.8.0, \< 10.5.25
- Npm jsrsasign (Npm): ≥ 4.8.0, \< 10.5.25

## References

- <https://snyk.io/vuln/SNYK-JS-JSRSASIGN-2869122>
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2935896>
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-2935897>
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898>
- <https://github.com/kjur/jsrsasign/commit/4536a6e9e8bcf1a644ab7c07ed96e453347dae41>
- <https://github.com/kjur/jsrsasign/releases/tag/10.5.25>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25898>
- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25898>
- <https://github.com/kjur/jsrsasign>

---

Data as of 2026-12-05T19:47:24.396Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
