HighGHSA-vf4w-fg7r-5v94CVE-2021-30130

Improper Certificate Validation in phpseclib

Published 7 Apr 2021 · Updated 10 Sept 2026

Affected packages

Affected
>=3.0.0 <3.0.7
Fixed in
3.0.7
Update to the fixed version for your release line, for example:composer require phpseclib/phpseclib:^3.0.7
Affected
<2.0.31
Fixed in
2.0.31
Update to the fixed version for your release line, for example:composer require phpseclib/phpseclib:^2.0.31

Details

phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.

Is GHSA-vf4w-fg7r-5v94 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected phpseclib/phpseclib, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.