CVE-2022-25898 json
Improper Verification of Cryptographic Signature
published 4y ago modified 4mo ago also GHSA-3fvg-4v2m-98jf , EUVD-2022-5902
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 67%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm jsrsasign 10.5.25
- n/a jsrsasign 10.5.25
- github.com/kjur/jsrsasign@4536a6e commit
- github.com/kjur/jsrsasign/releases/tag/10.5.25 release
- snyk.io/vuln/SNYK-JS-JSRSASIGN-2869122 advisory
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2935896 advisory
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-2935897 advisory
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898 advisory
Is CVE-2022-25898 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.15% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-JSRSASIGN-2869122 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2935896 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-2935897 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H/E:P |
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | jsrsasign | >=4.8.0, <10.5.25 |
10.5.25 |
Affected products
- n/a jsrsasign
Classification
- Weakness
-
- CWE-347 Improper Verification of Cryptographic Signature
References
-
github.com
/kjur/jsrsasign/commit/4536a6e9e8bcf1a644ab7c07ed96e453347dae41
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-JSRSASIGN-2869122
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-2935896
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-2935897
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898
web, exploit, patch, third-party-advisory
-
github.com
/kjur/jsrsasign/releases/tag/10.5.25
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-25898
advisory
-
cve.mitre.org
/cgi-bin/cvename.cgi?name=CVE-2022-25898
web
-
github.com
/kjur/jsrsasign
package
Sources
- CVE List CVE-2022-25898
- GitHub Advisory GHSA-3fvg-4v2m-98jf
- NVD CVE-2022-25898
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.