Skip to content
Heist/ feed
Back to feed
High

OpenPGP.js's message signature verification can be spoofed

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-47934
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 15:02 UTC · Revision 1

Source evidence

OpenPGP.js's message signature verification can be spoofed

core-osv · Original source

Published 19 May 2025, 18:57 UTC

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

osv:CVE-2025-47934
Complete source record
{
  "id": "3d0fd0faf84afc98553d409a2886ca0bf43dd0d253cc142643891d7849d041db",
  "url": "https://osv.dev/vulnerability/CVE-2025-47934",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "OpenPGP.js's message signature verification can be spoofed",
    "summary": "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 ",
    "evidence": "osv:CVE-2025-47934",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-47934",
      "aliases": [
        "CVE-2025-47934",
        "GHSA-8qff-qr5q-5pr8"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openpgpjs/openpgpjs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "05e435aae70596d1ef60af931884bd3085deb556"
                },
                {
                  "fixed": "b9edc546a7f933d732aeb41e36840c3751787433"
                },
                {
                  "introduced": "7881b850ec303df735acff4614aa4dd31663a5ad"
                },
                {
                  "fixed": "cacf5c42455876f76c61b3e5e779e237f8a68baf"
                },
                {
                  "fixed": "43f5f4e2bd67d0514d06acc60b6ee571a049c229"
                },
                {
                  "fixed": "bd54e8535ca29b3bef58a8c02296892e408be356"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "5.0.1"
                      },
                      {
                        "fixed": "5.11.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "6.0.0-alpha.0"
                      },
                      {
                        "fixed": "6.1.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "43f5f4e2bd67d0514d06acc60b6ee571a049c229"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bd54e8535ca29b3bef58a8c02296892e408be356"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b9edc546a7f933d732aeb41e36840c3751787433"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v5.11.3"
                  },
                  {
                    "range": [
                      {
                        "fixed": "cacf5c42455876f76c61b3e5e779e237f8a68baf"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v6.1.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.1.0",
            "v5.11.2",
            "v6.0.1",
            "v6.0.0",
            "v5.11.1",
            "v5.11.0",
            "v5.10.2",
            "v5.10.1",
            "v5.10.0",
            "v5.9.0",
            "v5.8.0",
            "v5.7.0",
            "v5.6.0",
            "v5.5.0",
            "v5.4.0",
            "v5.3.1",
            "v5.3.0",
            "v5.2.1",
            "v5.2.0",
            "v5.1.0",
            "v5.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-47934.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.709407023Z",
      "provider": "osv",
      "references": [
        "https://github.com/openpgpjs/openpgpjs/releases/tag/v5.11.3",
        "https://github.com/openpgpjs/openpgpjs/releases/tag/v6.1.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47934.json",
        "https://github.com/openpgpjs/openpgpjs/security/advisories/GHSA-8qff-qr5q-5pr8",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-47934",
        "https://github.com/openpgpjs/openpgpjs/commit/43f5f4e2bd67d0514d06acc60b6ee571a049c229",
        "https://github.com/openpgpjs/openpgpjs/commit/bd54e8535ca29b3bef58a8c02296892e408be356"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-347"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47934.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-47934",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496639,
  "published_at": "2025-05-19T18:57:05.602+00:00"
}