Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-47934

HIGH 8.7EPSS 40%

OpenPGP.js's message signature verification can be spoofed

Also known as GHSA-8qff-qr5q-5pr8

Mitigation

  • Upgrade openpgp to one of 5.11.3, 6.1.1 (or later in the same release line).

Who should check

  • Projects that depend on npm package openpgp (>= 5.0.1, < 5.11.3)
  • Anyone running openpgpjs >= 5.0.1, < 5.11.3; >= 6.0.0-alpha.0, < 6.1.1

Vulnerability facts

Affected
openpgp >= 5.0.1, < 5.11.3
Fixed in
5.11.3, 6.1.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.55% chance of exploitation in 30 days (percentile 40, 2026-11-26)
CWE
CWE-347
Published
Modified

Description

OpenPGP.js is a JavaScript implementation of the OpenPGP protocol. Startinf in version 5.0.1 and prior to versions 5.11.3 and 6.1.1, 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. Detached signature verifications are not affected, as no signed data is returned in that case. In order to spoof a message, the attacker needs a single valid message signature (inline or detached) as well as the plaintext data that was legitimately signed, and can then construct an inline-signed message or signed-and-encrypted message with any data of the attacker's choice, which will appear as legitimately signed by affected versions of OpenPGP.js. In other words, any inline-signed message can be modified to return any other data (while still indicating that the signature was valid), and the same is true for signed+encrypted messages if the attacker can obtain a valid signature and encrypt a new message (of the attacker's choice) together with that signature. The issue has been patched in versions 5.11.3 and 6.1.1. Some workarounds are available. When verifying inline-signed messages, extract the message and signature(s) from the message returned by `openpgp.readMessage`, and verify the(/each) signature as a detached signature by passing the signature and a new message containing only the data (created using `openpgp.createMessage`) to `openpgp.verify`. When decrypting and verifying signed+encrypted messages, decrypt and verify the message in two steps, by first calling `openpgp.decrypt` without `verificationKeys`, and then passing the returned signature(s) and a new message containing the decrypted data (created using `openpgp.createMessage`) to `openpgp.verify`.

Affected and fixed versions

Package / productAffectedFixedSource
npm openpgp>= 5.0.1, < 5.11.35.11.3, 6.1.1osv
openpgpjs>= 5.0.1, < 5.11.3; >= 6.0.0-alpha.0, < 6.1.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-47934. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-47934.md
Affected: openpgp >= 5.0.1, < 5.11.3
Fixed in: 5.11.3, 6.1.1

Steps:
1. Search this machine and project for openpgp (npm), openpgpjs: 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.

References

FAQ

Is CVE-2025-47934 being exploited?

There is no confirmed exploitation: CVE-2025-47934 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.55% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-47934?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2025-47934?

openpgp >= 5.0.1, < 5.11.3.

Is there a fix for CVE-2025-47934?

Yes. Fixed in 5.11.3, 6.1.1. Upgrade openpgp to one of 5.11.3, 6.1.1 (or later in the same release line).

How do I check if I'm affected by CVE-2025-47934?

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.

Sponsors