{"id":"CVE-2023-41037","published":"2023-08-29T16:46:47Z","modified":"2024-09-30T17:43:47Z","title":"Cleartext Signed Message Signature Spoofing in openpgpjs","vendor":"openpgpjs","product":"openpgpjs","tier":"tail","description":{"text":"OpenPGP.js is a JavaScript implementation of the OpenPGP protocol. In affected versions OpenPGP Cleartext Signed Messages are cryptographically signed messages where the signed text is readable without special tools. These messages typically contain a \"Hash: ...\" header declaring the hash algorithm used to compute the signature digest. OpenPGP.js up to v5.9.0 ignored any data preceding the \"Hash: ...\" texts when verifying the signature. As a result, malicious parties could add arbitrary text to a third-party Cleartext Signed Message, to lead the victim to believe that the arbitrary text was signed. A user or application is vulnerable to said attack vector if it verifies the CleartextMessage by only checking the returned `verified` property, discarding the associated `data` information, and instead _visually trusting_ the contents of the original message. Since `verificationResult.data` would always contain the actual signed data, users and apps that check this information are not vulnerable. Similarly, given a CleartextMessage object, retrieving the data using `getText()` or the `text` field returns only the contents that are considered when verifying the signature. Finally, re-armoring a CleartextMessage object (using `armor()` will also result in a \"sanitised\" version, with the extraneous text being removed. This issue has been addressed in version 5.10.1 (current stable version) which will reject messages when calling `openpgp.readCleartextMessage()` and in version 4.10.11 (legacy version) which will will reject messages when calling `openpgp.cleartext.readArmored()`. Users are advised to upgrade. Users unable to upgrade should check the contents of `verificationResult.data` to see what data was actually signed, rather than visually trusting the contents of the armored message.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00362,"percentile":0.22274,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/openpgpjs/openpgpjs/security/advisories/GHSA-ch3c-v47x-4pgp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/openpgpjs/openpgpjs/commit/6b43e02a254853f5ff508ebd1b07541f78b7c566","tags":["x_refsource_MISC"]}],"priority":{"score":7.5,"factors":[{"name":"EPSS percentile","points":4.45},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"openpgpjs","affectedVersions":[{"vendor":"openpgpjs","product":"openpgpjs","versions":["< 4.10.11",">= 5.0.0, < 5.10.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-30T17:34:19.116832Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"openpgp","vulnerableRanges":["<4.10.11",">=5.0.0, <5.10.1"],"patched":["4.10.11","5.10.1"],"from":["GHSA-ch3c-v47x-4pgp"],"provenance":"source"}],"summary":{"text":"The openpgpjs JavaScript implementation of OpenPGP, in versions up to v5.9.0, ignores any text that precedes the \"Hash: ...\" header when verifying Cleartext Signed Messages, so the signature check does not cover that leading content. An attacker with only network access can prepend arbitrary text to a third-party cleartext signed message, but exploitation requires a user to be deceived into trusting the visible contents, meaning an application that checks only the verified property and not the returned data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:00Z"},"euvd":{"id":"EUVD-2023-2270","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-9153","published":"2019-08-22","fixed":"4.2.0","kev":false},{"cve":"CVE-2019-9154","published":"2019-08-22","fixed":"4.2.0","kev":false},{"cve":"CVE-2019-9155","published":"2019-08-22","fixed":"4.3.0","kev":false},{"cve":"CVE-2023-41037","published":"2023-08-29","fixed":"5.10.1","kev":false},{"cve":"CVE-2025-47934","published":"2025-05-19","fixed":"6.1.1","kev":false,"link":{"from":"CVE-2023-41037","to":"CVE-2025-47934","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:openpgp","fromFixed":"5.10.1","toFixed":"5.11.3","daysApart":629}]}}],"package":"npm:openpgp"}}