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

CVE-2023-41037

MEDIUM 4.3EPSS 22%

Cleartext Signed Message Signature Spoofing in openpgpjs

Also known as GHSA-ch3c-v47x-4pgp

Mitigation

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

Who should check

  • Projects that depend on npm package openpgp (< 4.10.11)
  • Anyone running openpgpjs < 4.10.11; >= 5.0.0, < 5.10.1

Vulnerability facts

Affected
openpgp < 4.10.11
Fixed in
4.10.11, 5.10.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
4.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.36% chance of exploitation in 30 days (percentile 22, 2026-11-26)
CWE
CWE-347
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm openpgp< 4.10.114.10.11, 5.10.1osv
openpgpjs< 4.10.11; >= 5.0.0, < 5.10.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-2023-41037. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-41037.md
Affected: openpgp < 4.10.11
Fixed in: 4.10.11, 5.10.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-2023-41037 being exploited?

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

How serious is CVE-2023-41037?

Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2023-41037?

openpgp < 4.10.11.

Is there a fix for CVE-2023-41037?

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

How do I check if I'm affected by CVE-2023-41037?

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