# CVE-2020-14968: RSA-PSS signature validation vulnerability by prepending zeros in jsrsasign

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.99% (percentile 88, 2026-11-26)
- **CWE:** CWE-119
- **Aliases:** GHSA-q3gh-5r98-j4h3
- **Published:** 2020-06-22T11:19:49.000Z
- **Modified:** 2026-06-22T03:18:31.867Z

## Who should check

- Projects that depend on npm package jsrsasign (\>= 3.0.0, \< 8.0.17)
- Anyone running n/a (versions: see the vendor advisory)

## Description

An issue was discovered in the jsrsasign package before 8.0.17 for Node.js. Its RSASSA-PSS (RSA-PSS) implementation does not detect signature manipulation/modification by prepending '\\0' bytes to a signature (it accepts these modified signatures as valid). An attacker can abuse this behavior in an application by creating multiple valid signatures where only one signature should exist. Also, an attacker might prepend these bytes with the goal of triggering memory corruption issues.

## Affected and fixed versions

- npm `jsrsasign`: affected \>= 3.0.0, \< 8.0.17; fixed 8.0.17 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade jsrsasign to 8.0.17 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-14968. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-14968.md
Affected: jsrsasign >= 3.0.0, < 8.0.17
Fixed in: 8.0.17

Steps:
1. Search this machine and project for jsrsasign (npm), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-14968 being exploited?

There is no confirmed exploitation: CVE-2020-14968 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.99% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-14968?

Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2020-14968?

jsrsasign \>= 3.0.0, \< 8.0.17.

### Is there a fix for CVE-2020-14968?

Yes. Fixed in 8.0.17. Upgrade jsrsasign to 8.0.17 or later.

### How do I check if I'm affected by CVE-2020-14968?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/kjur/jsrsasign/security/advisories/GHSA-q3gh-5r98-j4h3>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-14968>
- patch: <https://github.com/kjur/jsrsasign/commit/3bcc088c727658d7235854cd2a409a904cc2ce99>
- exploit: <https://github.com/kjur/jsrsasign/issues/438>
- other: <https://kjur.github.io/jsrsasign/>
- other: <https://www.npmjs.com/package/jsrsasign>
- other: <https://github.com/kjur/jsrsasign/releases/tag/8.0.18>
- other: <https://github.com/kjur/jsrsasign/releases/tag/8.0.17>
- other: <https://security.netapp.com/advisory/ntap-20200724-0001/>
- other: <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14968>
- other: <https://github.com/kjur/jsrsasign>
- other: <https://kjur.github.io/jsrsasign>
- other: <https://kjur.github.io/jsrsasign/api/symbols/RSAKey.html#.verifyWithMessageHashPSS>
- other: <https://security.netapp.com/advisory/ntap-20200724-0001>
- other: <https://vuldb.com/?id.157125>
- other: <https://www.npmjs.com/advisories/1541>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-14968>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q3gh-5r98-j4h3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-14968> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-14968>
