Vulnerability library
Security checkMay 19, 2025

OpenPGP.js's message signature verification can be spoofed

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

A maliciously modified message can be passed to either openpgp.verify or openpgp.decrypt, causing these functions to return a valid signature verification result while returning data that was not actually signed.

This flaw allows signature verifications of inline (non-detached) signed messages (using openpgp.verify) and signed-and-encrypted messages (using openpgp.decrypt with verificationKeys) to be spoofed, since both functions return extracted data that may not match the data that was originally signed.

Recommendation

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

  • Affected version(s): **>= 6.0.0-alpha.0, <= 6.1.0 >= 5.0.1, <= 5.11.2**
  • Patched version(s): **6.1.1 5.11.3**

References

Could your website be exposed too?

SmartScanner can check your website for OpenPGP.js's message signature verification can be spoofed and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 19, 2025