{"schemaVersion":3,"id":"CVE-2022-25898","aliases":["GHSA-3fvg-4v2m-98jf"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-07-01T20:02:03.338Z","modified":"2024-09-16T18:48:35.777Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H/E:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","exploitability":10,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01153,"percentile":0.66522,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01153},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0112,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0112,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0112,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01153,"percentile":0.66522}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01153,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01153,"percentile":0.66522}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_0A544AC0912C6B0E","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JS-JSRSASIGN-2869122","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_35FC7A9BFD66D39D","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2935896","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_3CEAD51D43240FF2","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-2935897","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_39B2B8BCB039A4C9","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":4,"weaknesses":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature","description":"The product does not verify, or incorrectly verifies, the cryptographic signature for data.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/347.html"}],"affected":[{"vendor":"kjur","product":"jsrsasign","name":"jsrsasign","label":"jsrsasign","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.8.0, < 10.5.25","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.8.0, < 10.5.25","eol":null,"hubHref":"/vendor/kjur/jsrsasign"},{"vendor":"Npm","product":"jsrsasign","name":"jsrsasign","label":"jsrsasign","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/jsrsasign","purlType":"npm","versions":[{"text":"≥ 4.8.0, < 10.5.25","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.8.0, < 10.5.25","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://snyk.io/vuln/SNYK-JS-JSRSASIGN-2869122","label":"snyk.io/vuln/SNYK-JS-JSRSASIGN-2869122","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2935896","label":"snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2935896","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-2935897","label":"snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBKJUR-2935897","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898","label":"snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-2935898","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/kjur/jsrsasign/commit/4536a6e9e8bcf1a644ab7c07ed96e453347dae41","label":"github.com/kjur/jsrsasign/commit/4536a6e9e8bcf1a644ab7c07ed96e453347dae41","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/kjur/jsrsasign/releases/tag/10.5.25","label":"github.com/kjur/jsrsasign/releases/tag/10.5.25","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25898","label":"nvd.nist.gov/vuln/detail/CVE-2022-25898","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25898","label":"cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25898","hostname":"cve.mitre.org","tags":["WEB"]},{"url":"https://github.com/kjur/jsrsasign","label":"github.com/kjur/jsrsasign","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-07-01T20:02:03.338Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T18:48:35.777Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:03:01.813Z","stale":false,"partial":false}}