{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-41037","id":"CVE-2023-41037","title":"Cleartext Signed Message Signature Spoofing in openpgpjs","description":"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: ","descriptionLong":"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.","published":"2023-08-29T16:46:47.708Z","updated":"2026-10-28T02:30:29.551202309Z","reserved":"2023-08-22T16:57:23.931Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["openpgpjs"],"affectedProducts":[{"vendor":"openpgpjs","product":"openpgpjs","defaultStatus":null,"versions":[{"version":"< 4.10.11","status":"affected"},{"version":">= 5.0.0, < 5.10.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"openpgp","purl":"pkg:npm/openpgp","ranges":["<4.10.11",">=5.0.0 <5.10.1"],"fixed":["4.10.11","5.10.1"],"advisory":"GHSA-ch3c-v47x-4pgp"}],"cwes":["CWE-347"],"aliases":["GHSA-ch3c-v47x-4pgp"],"references":[{"url":"https://github.com/openpgpjs/openpgpjs/security/advisories/GHSA-ch3c-v47x-4pgp","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/openpgpjs/openpgpjs/commit/6b43e02a254853f5ff508ebd1b07541f78b7c566","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/41xxx/CVE-2023-41037.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41037","tags":["advisory"]},{"url":"https://github.com/openpgpjs/openpgpjs","tags":["package"]},{"url":"https://github.com/openpgpjs/openpgpjs/releases/tag/v4.10.11","tags":["web"]},{"url":"https://github.com/openpgpjs/openpgpjs/releases/tag/v5.10.1","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00354,"epssPercentile":0.29845,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-41037","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41037","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-41037","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-ch3c-v47x-4pgp","ok":true,"note":"GHSA-ch3c-v47x-4pgp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-41037","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}