CVE-2022-25898
CRITICAL 9.8CVSS 3.1JWS and JWT signature validation vulnerability with special characters
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.
- Published
- 1 Jul 2022
- Last modified
- 22 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-347
- Also known as
- GHSA-3fvg-4v2m-98jf
- Sources
- NVDJSONOSV GHSA-3fvg-4v2m-98jfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kjur | jsrsasigncpe:2.3:a:kjur:jsrsasign:*:*:*:*:*:node.js:*:* |
>= 4.8.0, < 10.5.25 | 10.5.25 |
| OSV | npm | jsrsasign | >= 4.8.0, < 10.5.25 | 10.5.25 |
References
- 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://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898 · 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-ORGWEBJARSNPM-2935896 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-JSRSASIGN-2869122 · Exploit, Patch, 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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 Jul 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 25 Jun 2022)