{"schemaVersion":3,"id":"CVE-2023-41037","aliases":["GHSA-ch3c-v47x-4pgp"],"status":"published","duplicateOf":null,"title":null,"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: ...\" 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.","dates":{"published":"2023-08-29T16:46:47.708Z","modified":"2024-09-30T17:43:47.802Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00354,"percentile":0.2761,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00354},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00354,"percentile":0.2761}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00354,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00354,"percentile":0.2761}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_OPENPGPJS_OPENPGPJS","name":"Openpgpjs","source":"github","url":"https://github.com/openpgpjs/openpgpjs/security/advisories/GHSA-ch3c-v47x-4pgp","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature","description":"The product does not verify, or incorrectly verifies, the cryptographic signature for data.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/347.html"}],"affected":[{"vendor":"Npm","product":"openpgp","name":"openpgp","label":"openpgp","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/openpgp","purlType":"npm","versions":[{"text":"< 4.10.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.10.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.10.11 | ≥ 5.0.0, < 5.10.1","eol":null,"hubHref":null},{"vendor":"openpgpjs","product":"openpgpjs","name":"openpgpjs","label":"openpgpjs","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0, < 5.10.1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.10.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 5.10.1 | < 4.10.11 | ≥ 5.0.0, < 5.10.0","eol":null,"hubHref":"/vendor/openpgpjs/openpgpjs"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/openpgpjs/openpgpjs/security/advisories/GHSA-ch3c-v47x-4pgp","label":"github.com/openpgpjs/openpgpjs/security/advisories/GHSA-ch3c-v47x-4pgp","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Exploit","Vendor Advisory"]},{"url":"https://github.com/openpgpjs/openpgpjs/commit/6b43e02a254853f5ff508ebd1b07541f78b7c566","label":"github.com/openpgpjs/openpgpjs/commit/6b43e02a254853f5ff508ebd1b07541f78b7c566","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41037","label":"nvd.nist.gov/vuln/detail/CVE-2023-41037","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/openpgpjs/openpgpjs","label":"github.com/openpgpjs/openpgpjs","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/openpgpjs/openpgpjs/releases/tag/v4.10.11","label":"github.com/openpgpjs/openpgpjs/releases/tag/v4.10.11","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/openpgpjs/openpgpjs/releases/tag/v5.10.1","label":"github.com/openpgpjs/openpgpjs/releases/tag/v5.10.1","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-08-29T16:46:47.708Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-30T17:43:47.802Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T18:26:45.703Z","stale":false,"partial":false}}