Vulnerability library
Security checkJanuary 27, 2023

OpenPGP 1.2.0 and earlier decrypts arbitrary messages

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmopenpgp

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

s2k.js in OpenPGP.js will decrypt arbitrary messages regardless of passphrase for crafted PGP keys which allows remote attackers to bypass authentication if message decryption is used as an authentication mechanism via a crafted symmetrically encrypted PGP message.

Recommendation

Update the openpgp package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.3.0
  • Patched version(s): 1.3.0

References

Could your website be exposed too?

SmartScanner can check your website for OpenPGP 1.2.0 and earlier decrypts arbitrary messages and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023