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

- Severity: High 7.7 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.17%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2022-06-25T07:19:06.000Z
- Modified: 2026-06-22T03:18:31.867Z
- Also known as: GHSA-3fvg-4v2m-98jf
- Weaknesses: CWE-347
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- jsrsasign: from unspecified before 10.5.25
- jsrsasign (npm): from 4.8.0 before 10.5.25
- kjur jsrsasign: from 4.8.0 before 10.5.25

## Every score

- snyk: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H/E:P`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-JSRSASIGN-2869122> (exploit, patch, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2935896> (exploit, patch, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-2935897> (exploit, patch, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898> (exploit, patch, third-party-advisory, web)
- <https://github.com/kjur/jsrsasign/commit/4536a6e9e8bcf1a644ab7c07ed96e453347dae41> (patch, third-party-advisory, web)
- <https://github.com/kjur/jsrsasign/releases/tag/10.5.25> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25898> (advisory)
- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25898> (web)
- <https://github.com/kjur/jsrsasign> (package)

## Sources

- CVE List: [CVE-2022-25898](https://www.cve.org/CVERecord?id=CVE-2022-25898), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-3fvg-4v2m-98jf](https://github.com/advisories/GHSA-3fvg-4v2m-98jf), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2022-25898](https://nvd.nist.gov/vuln/detail/CVE-2022-25898), Public domain, modified 2026-06-22

---

Page: https://cve.day/CVE-2022-25898 · Whole record: https://cve.day/CVE-2022-25898.json · Rebuilt by cve.day 2026-11-25T22:58:12.679Z
